Adding a check to see if user is running lh_clean from a sane location (i.e. not config/), thanks to Kai Hendry <hendry@webconverger.com>.
This commit is contained in:
parent
fb1e3ce43a
commit
4c91fd7d96
|
@ -42,6 +42,13 @@ else
|
||||||
ARGUMENTS="${@}"
|
ARGUMENTS="${@}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Avoid cases were users accidentally nuke their config/binary
|
||||||
|
if [ ! -d config ] || [ "$(basename ${PWD})" = "config" ]
|
||||||
|
then
|
||||||
|
Echo_error "${PWD} is not a good Debian Live working directory to clean."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
for ARGUMENT in ${ARGUMENTS}
|
for ARGUMENT in ${ARGUMENTS}
|
||||||
do
|
do
|
||||||
case "${ARGUMENT}" in
|
case "${ARGUMENT}" in
|
||||||
|
|
Loading…
Reference in New Issue