Small fixes

This commit is contained in:
2022-02-15 14:44:35 +01:00
parent 653d233586
commit 1c99aee146
2 changed files with 6 additions and 4 deletions

View File

@@ -304,11 +304,11 @@ step_50() {
local buTarget="$2"
if [ -z $2 ] ; then
echoerr " [W] No target directory provided. Using home of current user"
buTarget="~/"
buTarget="~"
fi
echo " [I] Dumping database $dbName to $(realpath $buTarget)"
exep "mysqldump --single-transaction $dbName > \"${buTarget}/${dbName}_backup_\`date +%Y%m%d-%H%M%S\`.sql\""
exep "mysqldump --single-transaction $dbName > \"$(realpath $buTarget)/${dbName}_backup_$(date +%Y%m%d-%H%M%S).sql\""
endReturn -o $? "Error creating $dbName backup"
}