Update offsite-power-check.sh
This commit is contained in:
@@ -166,7 +166,6 @@ case $1 in
|
|||||||
start) PWO_START &;;
|
start) PWO_START &;;
|
||||||
stop) PWO_STOP;;
|
stop) PWO_STOP;;
|
||||||
restart) PWO_RESTART;;
|
restart) PWO_RESTART;;
|
||||||
logrotate) LOGROTATE;;
|
|
||||||
update)
|
update)
|
||||||
cd ${PW_FOLDER}
|
cd ${PW_FOLDER}
|
||||||
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
|
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user