diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -92,9 +92,9 @@ pkg_remove () { pkg_update () { cd $PDIR/$1 - if (NEW=$($VCS_CMD $VCS_OPTIONS $VCS_INCOMING)) { - NEW=$(tail -n 1 <<< $NEW) - info "Updating package $1 to $NEW" + NEW=$($VCS_CMS $VCS_OPTIONS $VCS_INCOMING) + if ([ $? != 0 ]) { + info "Updating package $1 to $(echo $NEW | tail -n 1)" $VCS_CMD $VCS_OPTIONS $VCS_UPDATE $VCS_UPDATE_OPTIONS checklinks $CL_OPTIONS if ([ -f hooks/post-update ]) { |