Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve exit code from launcher #150

Merged
merged 3 commits into from
Dec 19, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions clipmenu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -69,3 +70,5 @@ done
if (( CM_OUTPUT_CLIP )); then
cat "$file"
fi

[ -n "$launcher_exit" ] && exit "$launcher_exit"
kankaristo marked this conversation as resolved.
Show resolved Hide resolved