Exit with 0 if target is active deployment
This commit is contained in:
parent
7affaa8907
commit
d772b4101a
1 changed files with 1 additions and 0 deletions
1
arkdep
1
arkdep
|
@ -459,6 +459,7 @@ remove_deployment () {
|
||||||
# Ensure deployment is not currently active
|
# Ensure deployment is not currently active
|
||||||
if grep -q "$arkdep_dir/deployments/$target/rootfs" /proc/cmdline; then
|
if grep -q "$arkdep_dir/deployments/$target/rootfs" /proc/cmdline; then
|
||||||
printf 'Target is currently active deployment\n'
|
printf 'Target is currently active deployment\n'
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove bootloader entry
|
# Remove bootloader entry
|
||||||
|
|
Loading…
Add table
Reference in a new issue