From 44b11f78947acf3d9c46303088a05d431347d93a Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Sun, 7 Apr 2024 16:17:08 +0530 Subject: [PATCH] absolute shebang & error handling --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 0fefa60..fdd9756 100644 --- a/install.sh +++ b/install.sh @@ -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