xbps.sh: change some returns to exit, to avoid errors with bash.
--HG-- extra : convert_revision : 3e9b9bca9f88bc795860a064d3c5169944136198
This commit is contained in:
parent
9436b962df
commit
0f8dbaf60e
6
xbps.sh
6
xbps.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user