26 Oct
2008
26 Oct
'08
3:52 p.m.
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