[cmd_deploy] Added "Nothing to do" line for when there is nothing to update
This commit is contained in:
parent
1e2d22cfbb
commit
81a132c1e4
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ cmd_deploy() {
|
|||
[[ $? -eq 0 ]] && { _ansi up 2; echo -en '\033[K'; } || { echo "[>>>>>>] Error reported"; cat ${STDERR}; local ERR=true; }
|
||||
done
|
||||
|
||||
if [[ -z "${removableidList[@]}" ]] && [[ -z "${updateableidList[@]}" ]]; then echo "Nothing to do"; fi
|
||||
[[ "${ERR}" == "true" ]] && return 1 || { gawk -i inplace -v newcommit=${NEW_COMMIT} 'BEGIN{FS="\t";OFS="\t"}{if($1=="LAST_DEPLOY"){$2=newcommit}{print $0}}' ${DB_FILE}; return 0; }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue