[cmd_deploy] Added "Nothing to do" line for when there is nothing to update

This commit is contained in:
ayakael 2018-04-07 20:13:53 -04:00
parent 1e2d22cfbb
commit 81a132c1e4
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -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; }
}