mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-04 20:02:10 +02:00
Send exit code of the command
This commit is contained in:
@@ -44,7 +44,7 @@ let
|
|||||||
command=$(echo "$line" | sed 's/^[^;]*;//;s/^[^;]*;//')
|
command=$(echo "$line" | sed 's/^[^;]*;//;s/^[^;]*;//')
|
||||||
|
|
||||||
exec "$command"
|
exec "$command"
|
||||||
exit 0
|
exit $?
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ $1 == "" ]] && ui
|
[[ $1 == "" ]] && ui
|
||||||
|
|||||||
Reference in New Issue
Block a user