summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-06-26 14:28:05 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-06-26 14:28:05 +0900
commitb6f685a444f7a76cf735c196d2baf5a8655dd8bb (patch)
tree635f1091e7628461fe7db13c7e55dcd841978ee6
parentc722a19628c2fae666066be7abe6cfa064bf6d56 (diff)
Init
-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
}