Fixed custom config for good

unset cannot be used unless you have the index. Good to know.
This commit is contained in:
Henric Andersson 2016-07-19 16:06:35 -07:00
commit 6f81578e80

View file

@ -230,7 +230,14 @@ if [ "${AUTOUPDATE}" == "yes" ]; then
echo "OK" echo "OK"
popd >/dev/null popd >/dev/null
unset ALLARGS["-u"] ALLARGS2=()
for A in ${ALLARGS} ; do
if [ ! "${A}" = "-u" ]; then
ALLARGS2+=(${A})
fi
done
ALLARGS=("${ALLARGS[@]}")
if ! type "$0" 2>/dev/null >/dev/null ; then if ! type "$0" 2>/dev/null >/dev/null ; then
if [ -f "$0" ]; then if [ -f "$0" ]; then
/bin/bash "$0" -U ${ALLARGS[@]} /bin/bash "$0" -U ${ALLARGS[@]}