Fix for new paths

This commit is contained in:
Bas Stottelaar
2014-11-12 23:36:52 +01:00
parent 3cf82f4dac
commit c64f08b2b5

View File

@@ -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."