Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ $# -eq 0 ]
- then
- echo "No arguments supplied"
- fi
- if [ -z "$1" ]
- then
- echo "No argument supplied and release id"
- fi
- DB_USER=$(cat ./configuration/config.php | grep DB_USER |awk -F"'" '{print $4}')
- DB_PASSWORD=$(cat ./configuration/config.php | grep DB_PASSWORD |awk -F"'" '{print $4}')
- DB_NAME=$(cat ./configuration/config.php | grep DB_NAME |awk -F"'" '{print $4}')
- guid=$(mysql -u $DB_USER -p$DB_PASSWORD -D $DB_NAME -e "SELECT guid FROM releases WHERE id ='"$1"'")
- guid=$(echo $guid | awk -F" " '{print $2}')
- php ./misc/testing/Release/delete_releases.php guid=equals=$guid ignore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement