From 2389ee61db32dc07c37b65f6d5feaa494d5325f9 Mon Sep 17 00:00:00 2001 From: zertrin Date: Thu, 28 Sep 2017 22:18:02 +0800 Subject: [PATCH] Fix program version output when cwd is not the same as scriptdir --- duplicity-backup.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/duplicity-backup.sh b/duplicity-backup.sh index 3e529a7..255283c 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -130,7 +130,8 @@ version_compare "${DUPLICITY_VERSION}" 0.7 case $? in 2) LT07=1;; *) LT07=0;; esac # Read the version string from the file VERSION -DBSH_VERSION=$(&5 -echo -e "-------[ Program versions ]-------\n" -echo -e "duplicity-backup.sh ${DBSH_VERSION}\n" -echo -e "duplicity ${DUPLICITY_VERSION}\n" +echo -e "-------[ Program versions ]-------" +echo -e "duplicity-backup.sh ${DBSH_VERSION}" +echo -e "duplicity ${DUPLICITY_VERSION}" +echo -e "----------------------------------\n" get_lock