summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpublic/thesiah.sh10
-rwxr-xr-xstatic/thesiah.sh10
2 files changed, 10 insertions, 10 deletions
diff --git a/public/thesiah.sh b/public/thesiah.sh
index ca8a377..34e7efc 100755
--- a/public/thesiah.sh
+++ b/public/thesiah.sh
@@ -218,11 +218,11 @@ installationloop() {
echo "$comment" | grep -q "^\".*\"$" &&
comment="$(echo "$comment" | sed -E "s/(^\"|\"$)//g")"
case "$tag" in
- "A") aurinstall "$program" "$comment" ;;
- "G") gitmakeinstall "$program" "$comment" ;;
- "P") pipinstall "$program" "$comment" ;;
- "I") initinstall "$program" "$comment" ;;
- *) maininstall "$program" "$comment" ;;
+ "A") aurinstall "$program" "$comment" || error "Failed to install the aur package." ;;
+ "G") gitmakeinstall "$program" "$comment" || error "Failed to install the git package." ;;
+ "P") pipinstall "$program" "$comment" || error "Failed to install the pip package." ;;
+ "I") initinstall "$program" "$comment" || error "Failed to install the init package." ;;
+ *) maininstall "$program" "$comment" || error "Failed to install the pacman package." ;;
esac
done </tmp/progs.csv
}
diff --git a/static/thesiah.sh b/static/thesiah.sh
index ca8a377..34e7efc 100755
--- a/static/thesiah.sh
+++ b/static/thesiah.sh
@@ -218,11 +218,11 @@ installationloop() {
echo "$comment" | grep -q "^\".*\"$" &&
comment="$(echo "$comment" | sed -E "s/(^\"|\"$)//g")"
case "$tag" in
- "A") aurinstall "$program" "$comment" ;;
- "G") gitmakeinstall "$program" "$comment" ;;
- "P") pipinstall "$program" "$comment" ;;
- "I") initinstall "$program" "$comment" ;;
- *) maininstall "$program" "$comment" ;;
+ "A") aurinstall "$program" "$comment" || error "Failed to install the aur package." ;;
+ "G") gitmakeinstall "$program" "$comment" || error "Failed to install the git package." ;;
+ "P") pipinstall "$program" "$comment" || error "Failed to install the pip package." ;;
+ "I") initinstall "$program" "$comment" || error "Failed to install the init package." ;;
+ *) maininstall "$program" "$comment" || error "Failed to install the pacman package." ;;
esac
done </tmp/progs.csv
}