summaryrefslogtreecommitdiff
path: root/update-cleansystem
diff options
context:
space:
mode:
Diffstat (limited to 'update-cleansystem')
-rwxr-xr-xupdate-cleansystem9
1 files changed, 7 insertions, 2 deletions
diff --git a/update-cleansystem b/update-cleansystem
index 7c652ab..6bec742 100755
--- a/update-cleansystem
+++ b/update-cleansystem
@@ -3,6 +3,7 @@
# Creates a fake Parabola root and writes to cleansystem all
# packages installable from base and base-devel plus extras.
+set -e
# Copyright 2012 Nicolás Reynolds, Luke Shumaker
# ---------- GNU General Public License 3 ----------
@@ -59,5 +60,9 @@ pacman -b "${db_dir}" --config /etc/pacman.conf -Sy 2>/dev/null
pacman -b "${db_dir}" \
--config /etc/pacman.conf \
-Sp --print-format "%n" \
- base base-devel sudo "$@" | sort > "$cleansystem"
-pacman -Sy --needed --noconfirm base base-devel sudo "$@"
+ base base-devel sudo $@ | sort > "$cleansystem"
+
+# Ensures everything's installed
+pacman -Sy --needed --noconfirm base base-devel sudo $@
+
+exit $?