aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh31
1 files changed, 6 insertions, 25 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index c6fb031..516c407 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,33 +1,9 @@
-#!/usr/bin/env bash
+#!/usr/bin/env sh
SYMLINKDIR=$(readlink -f "$0")
BASEDIR=$(dirname "$SYMLINKDIR")
cd $BASEDIR
-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 $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 sway waybar
- ;;
- void)
- sudo xbps-install -S picom setxkbmap feh xinput dash imlib2 xsetroot alacritty flameshot rofi xbacklight pamixer playerctl git rsync
- ;;
- *)
- echo "You'll have to install the dependencies yourself"
- ;;
- esac
-
-fi;
-
-git pull;
-
function doIt() {
git submodule update --init --recursive
rsync --exclude ".git/" \
@@ -36,6 +12,9 @@ function doIt() {
--exclude "bootstrap.sh" \
--exclude "README.md" \
--exclude "LICENSE.md" \
+ --exclude ".gitconfig" \
+ --exclude ".gitignore" \
+ --exclude ".gitmodules" \
--exclude "dwm" \
-avh --no-perms ./ ~/
}
@@ -49,4 +28,6 @@ else
doIt;
fi;
fi;
+
unset doIt;
+