code cleanup

This commit is contained in:
Tobias Powalowski 2022-01-21 11:11:50 +01:00
parent 9f3d1de209
commit b914bd25ae

View file

@ -14,7 +14,7 @@ usage()
echo " for each additional mountpoint eg. /boot or /home." echo " for each additional mountpoint eg. /boot or /home."
echo "" echo ""
echo "usage: ${APPNAME} <oldmountpoint> <newmountpoint>" echo "usage: ${APPNAME} <oldmountpoint> <newmountpoint>"
exit $1 exit "$1"
} }
################################################## ##################################################
@ -26,4 +26,4 @@ fi
NEWMOUNTPOINT="${2}" NEWMOUNTPOINT="${2}"
OLDMOUNTPOINT="${1}" OLDMOUNTPOINT="${1}"
tar -C $OLDMOUNTPOINT -clpf - . | tar -C $NEWMOUNTPOINT -vxlspf - tar -C "$OLDMOUNTPOINT" -clpf - . | tar -C "$NEWMOUNTPOINT" -vxlspf -