mirror of
https://github.com/CompeyDev/dotfiles.git
synced 2024-12-12 12:50:36 +00:00
absolute shebang & error handling
This commit is contained in:
parent
32d462c43d
commit
44b11f7894
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue