Skip to content

Commit

Permalink
Add option to specify arguments to exec
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Jul 21, 2021
1 parent 3f07a8c commit 14663b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/nuke
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,14 @@ handle_bin() {
application/x-executable|application/x-shellscript)
clear
echo '-------- Executable File --------' && file --dereference --brief -- "${FPATH}"
printf "Run executable (y/N)? "
printf "Run executable (y/N/'a'rgs)? "
read -r answer
case "$answer" in
[Yy]* ) exec "${FPATH}";;
[Aa]* )
printf "args: "
read -r args
exec "${FPATH}" "$args";;
[Nn]* ) exit;;
esac
esac
Expand Down

0 comments on commit 14663b9

Please sign in to comment.