Do not delete base directory on the target

This commit is contained in:
Martin Puppe 2020-12-02 20:11:01 +01:00
parent 9e3311eef2
commit 3d8ac1e944

View file

@ -90,12 +90,12 @@ rm "$0"
echo "!*data" >&2
read basedir
if test -d "$basedir"; then
rm -rf "$basedir"
fi
mkdir -p "$basedir"
if test ! -d "$basedir"; then
mkdir "$basedir"
chown root:root "$basedir"
chmod 755 "$basedir"
fi
rm -rf "$basedir"/*
while read name; do
fullpath="$basedir/$name"