mirror of
https://github.com/nix-community/impermanence
synced 2024-11-12 22:57:11 +00:00
Fix error when target is /
This commit is contained in:
parent
e3a7acd113
commit
bcfdc06b23
1 changed files with 0 additions and 4 deletions
|
@ -43,10 +43,6 @@ if (( "$debug" )); then
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
fi
|
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
|
# check that the source exists and warn the user if it doesn't, then
|
||||||
# create them with the specified permissions
|
# create them with the specified permissions
|
||||||
realSource="$(realpath -m "$sourceBase$target")"
|
realSource="$(realpath -m "$sourceBase$target")"
|
||||||
|
|
Loading…
Reference in a new issue