From 0f8dbaf60efa8d6f984693320fe6957c3f21d755 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 13 Dec 2008 15:11:24 +0100 Subject: [PATCH] xbps.sh: change some returns to exit, to avoid errors with bash. --HG-- extra : convert_revision : 3e9b9bca9f88bc795860a064d3c5169944136198 --- xbps.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xbps.sh b/xbps.sh index e3205517f4e..aab71d151d2 100755 --- a/xbps.sh +++ b/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