summaryrefslogtreecommitdiff
path: root/bin/workstation-duplicity
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-08-12 11:40:51 +0100
committerSean Whitton <spwhitton@spwhitton.name>2019-08-12 11:40:56 +0100
commit873997298b6f6ebee5b07552659a650cee8f642f (patch)
tree7465571499c37b328866e10d97f7dd895994fe97 /bin/workstation-duplicity
parent7a0bfe3e48cc3928f444f2383485f2e1c09d44b5 (diff)
downloaddotfiles-873997298b6f6ebee5b07552659a650cee8f642f.tar.gz
cron does not set $USER, it would seem
Diffstat (limited to 'bin/workstation-duplicity')
-rwxr-xr-xbin/workstation-duplicity2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/workstation-duplicity b/bin/workstation-duplicity
index 55c4c847..14bb22fc 100755
--- a/bin/workstation-duplicity
+++ b/bin/workstation-duplicity
@@ -5,7 +5,7 @@ set -e
. $HOME/.shenv
FLAG_FILE="$HOME/local/duplicity-flag-file"
-DUPLY_PROFILE="$(hostname -s)-$USER-home"
+DUPLY_PROFILE="$(hostname -s)-$(whoami)-home"
# ensure only one copy of this script is ever running at once
[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@" ||: