From c64f08b2b57d7a4d46fb70da139a72ed96cc908a Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Wed, 12 Nov 2014 23:36:52 +0100 Subject: [PATCH] Fix for new paths --- contrib/downgrade.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/downgrade.sh b/contrib/downgrade.sh index 9ff084b9..b6f4ded1 100755 --- a/contrib/downgrade.sh +++ b/contrib/downgrade.sh @@ -7,7 +7,7 @@ if [ -z "$1" ]; then fi # Version file check -if [ ! -s "$2/version.lock" ]; then +if [ ! -s "$1/version.lock" ]; then echo "Missing the version.lock file in the data folder, or the file is empty. Did you start Headphones at least once?" exit 1 fi @@ -19,7 +19,7 @@ if [ ! -x "$(command -v git)" ]; then fi # Display information -HASH=$(cat $2/version.lock) +HASH=$(cat $1/version.lock) echo "This script will try to downgrade Headphones to the last version that started, version $HASH. Make sure you have a backup of your config file and database, just in case!" echo "Press enter to continue, or CTRL + C to quit."