grep quite instead of devnull
This commit is contained in:
parent
3c14e8f148
commit
2bd13758e9
1 changed files with 1 additions and 1 deletions
2
arkdep
2
arkdep
|
@ -367,7 +367,7 @@ remove_deployment () {
|
|||
declare -r target="${hits[0]}"
|
||||
|
||||
# Ensure deployment is not currently active
|
||||
if grep "$(readlink -m $arkdep_dir/deployments/$target/rootfs)" /proc/cmdline > /dev/null; then
|
||||
if grep -q "$(readlink -m $arkdep_dir/deployments/$target/rootfs)" /proc/cmdline; then
|
||||
printf 'Target is currently active deployment\n'
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue