import-env: fail if no matching process is found
This commit is contained in:
parent
d5fa2e99de
commit
9b6c44cce0
7 changed files with 8 additions and 7 deletions
|
@ -8,7 +8,7 @@ ln -s ${XDG_RUNTIME_DIR:-/run/user/$UID}/supervise.$1 $1/supervise
|
|||
echo '#!/bin/zsh'
|
||||
if [[ $importenv ]]; then
|
||||
echo 'source ${0:a:h:h}/import-env.zsh'
|
||||
echo "import-env ${importenv[2]}"
|
||||
echo "import-env ${importenv[2]} || exit 1"
|
||||
fi
|
||||
echo "exec $*"
|
||||
} > $1/run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue