[Tech] breaking out of if-blocks in bash
by Benjamin Schieder
Neither the
break nor the continue works mean anything in an if-block, so what to do? Create a subprocess (if your code allows it):if [ -n "${PS1}" ] ; then
(
[ -w / ] && exit
...
)
fi
(
[ -w / ] && exit
...
)
fi
EOF
Subscribe via RSS