Use realpath for buTarget directory

This commit is contained in:
2022-01-22 00:05:29 +01:00
parent feed3076ba
commit 9507922968

View File

@@ -172,7 +172,7 @@ step_20() {
buTarget="~/"
fi
echo " [I] Dumping database $dbName to $buTarget"
echo " [I] Dumping database $dbName to $(realpath $buTarget)"
exep "mysqldump --single-transaction $dbName > \"${buTarget}/${dbName}_backup_\`date +%Y%m%d-%H%M%S\`.sql\""
endReturn -o $? "Error creating $dbName backup"
}