Dieter Plaetinck wrote:
+    if [ ! "$(type -p rsync)" ]; then
+        error "missing wget download utility.  Install wget."
+        exit $_E_MISSING_PROGRAM
+    fi

You probably meant 'type -p wget' here?

Good catch!  A bit too much copy/paste here...

You can also just check the exit status of type btw, instead of capturing and comparing its output:.
if ! type -p wget >/dev/null; then ....

The current way is used elsewhere in the abs code and given this makes little difference I will stick with it.

Thanks,
Allan


_______________________________________________
pacman-dev mailing list
[email protected]
http://archlinux.org/mailman/listinfo/pacman-dev

Reply via email to