1
0
mirror of https://github.com/deajan/obackup.git synced 2024-12-25 15:03:41 +01:00

Added ~ expansion

This commit is contained in:
deajan 2016-08-30 15:36:08 +02:00
parent d415a727bf
commit 8c17c2dfe2
2 changed files with 8 additions and 2 deletions

View File

@ -5,8 +5,8 @@ PROGRAM="obackup"
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
PROGRAM_VERSION=2.1-dev
PROGRAM_BUILD=2016082901
IS_STABLE=no
PROGRAM_BUILD=2016083001
IS_STABLE=yes
source "./ofunctions.sh"
@ -1245,6 +1245,12 @@ function Main {
fi
fi
# Expand ~ if exists
FILE_STORAGE="${FILE_STORAGE/#\~/$HOME}"
SQL_STORAGE="${SQL_STORAGE/#\~/$HOME}"
SSH_RSA_PRIVATE_KEY="${SSH_RSA_PRIVATE_KEY/#\~/$HOME}"
ENCRYPT_PUBKEY="${ENCRPYT_PUBKEY/#\~/$HOME}"
if [ "$CREATE_DIRS" != "no" ]; then
CreateStorageDirectories
fi