From 0d9daeec64c7727c5d2c50c06ba53bb383601953 Mon Sep 17 00:00:00 2001 From: Marco Kundt Date: Wed, 25 Nov 2020 13:20:28 +0100 Subject: [PATCH] use shorter . --- restic/.bin/restic_backup | 2 +- restic/.bin/restic_common | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }