#! /bin/bash project_name='test' open_change=$(echo "SELECT change_key FROM changes WHERE (dest_project_name='$project_name') and (open='Y');" | mysql -u[account] -p[password] reviewdb --silent) if [ ! -n "${open_change}" ]; then echo "It dose not exits changes on Gerrit." exit 0 else echo "It exits changes on Gerrit." exit 1 fi
沒有留言:
張貼留言