You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can take some time (400 ms on my machine) so for make my little script seems more responsible i launch it on background and just after launch fzf with all the rest of my script.
but if the test fail, i close fzf with a little message
( # If both commands return 1 (no updates or error), interrupt the program
if [[ $paru_exit_code -ne 0 && $checkupdates_exit_code -ne 0 ]]; then
kill $(pgrep -n fzf)
echo "No updates available, exiting the program."
exit 15
fi
) &
The issue here is that, the user can have only one fzf menu open, or the script gonna kill one underdermined, and i can't now wich one.
So i thinking i launching fzf with a custom name, pgrep this name and, kill it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello
I have a little part of the script i launch on the background
This can take some time (400 ms on my machine) so for make my little script seems more responsible i launch it on background and just after launch fzf with all the rest of my script.
but if the test fail, i close fzf with a little message
The issue here is that, the user can have only one fzf menu open, or the script gonna kill one underdermined, and i can't now wich one.
So i thinking i launching fzf with a custom name,
pgrep
this name and, kill it.Beta Was this translation helpful? Give feedback.
All reactions