Add bash shebang in database export

This commit is contained in:
Harald Nezbeda
2017-09-06 06:44:39 +02:00
parent 1c47c4428e
commit 2447bfaf30
+2 -1
View File
@@ -1,3 +1,4 @@
#!/bin/bash
_os="`uname`"
_now=$(date +"%m_%d_%Y")
_file="wp-data/data_$_now.sql"
@@ -6,4 +7,4 @@ if [[ $_os == "Darwin"* ]] ; then
sed -i '.bak' 1,1d $_file
else
sed -i 1,1d $_file # Removes the password warning from the file
fi
fi