=== modified file 'zsh-functions/confz_zsv_init' --- zsh-functions/confz_zsv_init 2014-06-24 14:40:57 +0000 +++ zsh-functions/confz_zsv_init 2014-06-24 14:33:19 +0000 @@ -55,17 +55,12 @@ do_command=( sv restart $vars[service] ) - local -a failures local f for f in ${(f)"$(<$vars[service]/restart.files)"}; do - [[ -e $f ]] || failures+=( "${(qqq)f} does not exist" ) - [[ $vars[service]/restart.files -nt $f ]] || failures+=( - "${(qqq)f} is newer than restart.files" - ) + [[ -e $f ]] || return 1 + [[ $vars[service]/restart.files -nt $f ]] || return 1 done - - fail_reason=${(j:,:)failures} - return $#failures + return 0 } @@ -76,17 +71,12 @@ do_command=( sv hup $vars[service] ) - local -a failures local f for f in ${(f)"$(<$vars[service]/reload.files)"}; do - [[ -e $f ]] || failures+=( "${(qqq)f} does not exist" ) - [[ $vars[service]/reload.files -nt $f ]] || failures+=( - "${(qqq)f} is newer than reload.files" - ) + [[ -e $f ]] || return 1 + [[ $vars[service]/reload.files -nt $f ]] || return 1 done - - fail_reason=${(j:,:)failures} - return $#failures + return 0 }