aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbootstrap.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 671b2a2..7742d5b 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,16 +1,18 @@
-#!/usr/bin/env sh
+#!/usr/bin/env bash
-SYMLINKDIR=(readlink -f "$0")
+SYMLINKDIR=$(readlink -f "$0")
BASEDIR=$(dirname "$SYMLINKDIR")
cd $BASEDIR
-source /etc/os-release
+if [ -f /etc/os-release ]; then
+ . /etc/os-release
+ OS=$NAME
+fi
read -p "Install dependencies? (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
-
- case $ID in
+ case $OS in
arch)
sudo pacman -S picom xorg-setxkbmap feh xorg-xinput dash imlib2 xorg-xsetroot alacritty flameshot rofi xorg-xbacklight pamixer playerctl xsecurelock git base rsync
;;