Force removal of files when restoring system config
This commit is contained in:
parent
e6246599eb
commit
112e015f05
@ -37,7 +37,7 @@ restore_config ()
|
|||||||
cp -dp "tmp/$file" "/$file"
|
cp -dp "tmp/$file" "/$file"
|
||||||
rm "tmp/$file"
|
rm "tmp/$file"
|
||||||
else
|
else
|
||||||
rm "/$file"
|
rm -f "/$file"
|
||||||
fi
|
fi
|
||||||
d="$(dirname "tmp/$file")"
|
d="$(dirname "tmp/$file")"
|
||||||
while [ -n "$d" ] && [ "$d" != "." ]
|
while [ -n "$d" ] && [ "$d" != "." ]
|
||||||
|
Loading…
Reference in New Issue
Block a user