absolute shebang & error handling

This commit is contained in:
Erica Marigold 2024-04-07 16:17:08 +05:30 committed by GitHub
parent 32d462c43d
commit 44b11f7894
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
#!/bin/bash
set -e
git submodule init
git submodule update
@ -14,7 +15,7 @@ for dep in ${deps[@]}
do
if ! which $dep 2>/dev/null; then
echo "[!] Dependency $dep not found!"
pacman -Syy "$dep"
sudo pacman -Syy "$dep"
else
echo -e "\e[1A\e[K[*] FOUND: $dep"
fi