aboutsummaryrefslogtreecommitdiffstats
path: root/arch-system/backup-sudo
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2021-12-07 06:59:49 +0100
committerTharre <tharre3@gmail.com>2021-12-18 22:51:29 +0100
commite31b38c782a065c88515fe4191f458ef692173ff (patch)
tree6cae1413abe71e18c17d7263b5ccc449831b6b5e /arch-system/backup-sudo
parent99f955d136ec458c188ee21e70df9657801b4854 (diff)
downloadpkgbuilds-e31b38c782a065c88515fe4191f458ef692173ff.tar.gz
pkgbuilds-e31b38c782a065c88515fe4191f458ef692173ff.tar.xz
pkgbuilds-e31b38c782a065c88515fe4191f458ef692173ff.zip
arch-system: fix a couple small things
Diffstat (limited to 'arch-system/backup-sudo')
-rwxr-xr-xarch-system/backup-sudo2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch-system/backup-sudo b/arch-system/backup-sudo
index 38594da..1091451 100755
--- a/arch-system/backup-sudo
+++ b/arch-system/backup-sudo
@@ -2,7 +2,7 @@
validate_path() {
# validate path
- targetpath=$(realpath -m -- "$1")
+ targetpath="$(realpath -m -- "$1")"
if [[ "$targetpath" != /.snapshots/* ]]; then
echo "Invalid path given." >&2
exit 2