Use realpath for buTarget directory
This commit is contained in:
@@ -172,7 +172,7 @@ step_20() {
|
|||||||
buTarget="~/"
|
buTarget="~/"
|
||||||
fi
|
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\""
|
exep "mysqldump --single-transaction $dbName > \"${buTarget}/${dbName}_backup_\`date +%Y%m%d-%H%M%S\`.sql\""
|
||||||
endReturn -o $? "Error creating $dbName backup"
|
endReturn -o $? "Error creating $dbName backup"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user