diff --git a/clipmenu b/clipmenu index fbd883f..471bd77 100755 --- a/clipmenu +++ b/clipmenu @@ -56,6 +56,7 @@ if [[ "$CM_LAUNCHER" == rofi-script ]]; then fi else chosen_line=$(list_clips | "$CM_LAUNCHER" "${launcher_args[@]}" "$@") + launcher_exit=$? fi [[ $chosen_line ]] || exit 1 @@ -69,3 +70,5 @@ done if (( CM_OUTPUT_CLIP )); then cat "$file" fi + +exit "${launcher_exit:-"$?"}"