xbps.sh: change some returns to exit, to avoid errors with bash.

--HG--
extra : convert_revision : 3e9b9bca9f88bc795860a064d3c5169944136198
This commit is contained in:
Juan RP 2008-12-13 15:11:24 +01:00
parent 9436b962df
commit 0f8dbaf60e

View File

@ -296,12 +296,12 @@ extract|fetch|info)
if [ "$target" = "info" ]; then
. $XBPS_SHUTILSDIR/tmpl_funcs.sh
info_tmpl $2
return $?
exit $?
fi
if [ "$target" = "fetch" ]; then
. $XBPS_SHUTILSDIR/fetch_funcs.sh
fetch_distfiles $2
return $?
exit $?
fi
. $XBPS_SHUTILSDIR/extract_funcs.sh
extract_distfiles $2
@ -315,7 +315,7 @@ install|install-destdir)
list|listfiles)
if [ "$target" = "list" ]; then
$XBPS_PKGDB_CMD list
return $?
exit $?
fi
. $XBPS_SHUTILSDIR/pkgtarget_funcs.sh
list_pkg_files $2