Advertisement
Guest User

Untitled

a guest
May 1st, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. if [ $# -eq 0 ]
  2. then
  3. echo "No arguments supplied"
  4. fi
  5.  
  6. if [ -z "$1" ]
  7. then
  8. echo "No argument supplied and release id"
  9. fi
  10.  
  11. DB_USER=$(cat ./configuration/config.php | grep DB_USER |awk -F"'" '{print $4}')
  12. DB_PASSWORD=$(cat ./configuration/config.php | grep DB_PASSWORD |awk -F"'" '{print $4}')
  13. DB_NAME=$(cat ./configuration/config.php | grep DB_NAME |awk -F"'" '{print $4}')
  14. guid=$(mysql -u $DB_USER -p$DB_PASSWORD -D $DB_NAME -e "SELECT guid FROM releases WHERE id ='"$1"'")
  15. guid=$(echo $guid | awk -F" " '{print $2}')
  16. php ./misc/testing/Release/delete_releases.php guid=equals=$guid ignore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement