diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-06-26 14:28:05 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-06-26 14:28:05 +0900 |
| commit | b6f685a444f7a76cf735c196d2baf5a8655dd8bb (patch) | |
| tree | 635f1091e7628461fe7db13c7e55dcd841978ee6 | |
| parent | c722a19628c2fae666066be7abe6cfa064bf6d56 (diff) | |
Init
| -rwxr-xr-x | public/thesiah.sh | 10 | ||||
| -rwxr-xr-x | static/thesiah.sh | 10 |
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 } |
