diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-03-24 11:20:20 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-03-24 11:20:45 -0500 |
commit | e91f1d7aa947cbbe1c1605ed020d960220ba59b8 (patch) | |
tree | 689ee858335bde635326e8cb197c5fcb92e39555 | |
parent | 551537d4370bb373776b85d2a505e7dc59fd0f53 (diff) |
Use HOME variable when changing ownership of backup archive.
-rw-r--r-- | chapter6/backup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chapter6/backup.sh b/chapter6/backup.sh index 842ed27..c763d8c 100644 --- a/chapter6/backup.sh +++ b/chapter6/backup.sh @@ -16,7 +16,7 @@ else printf "%b" "${RED}Backup FAILED!${RST}\n" exit 1 else - sudo chown "${USER}" /home/"${USER}"/"${FILE}" + sudo chown "${USER}" "${HOME}"/"${FILE}" printf "%b" "${GRN}OK${RST}\n" fi popd > /dev/null || exit 1 |