diff --git a/restic/.bin/restic_backup b/restic/.bin/restic_backup index 5cd7711..2704b50 100755 --- a/restic/.bin/restic_backup +++ b/restic/.bin/restic_backup @@ -1,6 +1,6 @@ #!/bin/bash -source $HOME/.bin/restic_common +. $HOME/.bin/restic_common export RESTIC_PASSWORD="${RESTIC_PASSWORD}" restic -r $RESTIC_REPOSITORY unlock diff --git a/restic/.bin/restic_common b/restic/.bin/restic_common index c4774f3..a3b1739 100755 --- a/restic/.bin/restic_common +++ b/restic/.bin/restic_common @@ -21,7 +21,7 @@ read_config() { exit 1 fi - source ./env 2> /dev/null || source $HOME/.config/restic/env 2> /dev/null || source /etc/restic/env 2> /dev/null + . $HOME/.config/restic/env 2> /dev/null || . /etc/restic/env 2> /dev/null } info() { printf "\n\e[1m%s\e[0m\n" "$*" >&2; }