Fix error when target is /

This commit is contained in:
Moritz Hedtke 2023-08-17 20:13:20 +02:00
parent e3a7acd113
commit bcfdc06b23

View file

@ -43,10 +43,6 @@ if (( "$debug" )); then
set -o xtrace
fi
# trim trailing slashes the root of all evil
sourceBase="${sourceBase%/}"
target="${target%/}"
# check that the source exists and warn the user if it doesn't, then
# create them with the specified permissions
realSource="$(realpath -m "$sourceBase$target")"