aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrice.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/rice.sh b/rice.sh
index 1a0ba91..9fafbb4 100755
--- a/rice.sh
+++ b/rice.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-
+set -e
WORKDIRECTORY=$PWD
PERMUSER="awy"
@@ -13,17 +13,17 @@ pacman -Sy --noconfirm
pacman -S $DEPLIST --noconfirm
usermod -aG seat,input,audio,video $PERMUSER
-doas -u $PERMUSER cp -r $WORKDIRECTORY/.config /home/$PERMUSER
-doas -u $PERMUSER cp -r $WORKDIRECTORY/.local /home/$PERMUSER
-doas -u $PERMUSER cp -a $WORKDIRECTORY/.zprofile /home/$PERMUSER
+doas -u $PERMUSER cp -r "$WORKDIRECTORY"/.config /home/$PERMUSER
+doas -u $PERMUSER cp -r "$WORKDIRECTORY"/.local /home/$PERMUSER
+doas -u $PERMUSER cp -a "$WORKDIRECTORY"/.zprofile /home/$PERMUSER
doas -u $PERMUSER mkdir -p /home/$PERMUSER/.cache/lf
doas -u $PERMUSER mkdir -p /home/$PERMUSER/.cache/zsh
doas -u $PERMUSER mkdir -p /home/$PERMUSER/.local/share/themes
doas -u $PERMUSER mkdir -p /home/$PERMUSER/.local/share/icons
-cd $WORKDIRECTORY
-doas -u $PERMUSER git clone https://github.com/awnrt/gruvbox-gtk-theme
+cd "$WORKDIRECTORY" || exit
+doas -u $PERMUSER git clone https://github.com/awnrt/gruvbox-gtk-theme
doas -u $PERMUSER cp -r gruvbox-gtk-theme/Gruvbox-Dark /home/$PERMUSER/.local/share/themes
doas -u $PERMUSER cp -r gruvbox-gtk-theme/Gruvbox-Icons /home/$PERMUSER/.local/share/icons
@@ -32,12 +32,12 @@ doas -u $PERMUSER dbus-launch gsettings set org.gnome.desktop.interface icon-the
doas -u $PERMUSER dbus-launch gsettings set org.gnome.desktop.wm.preferences button-layout 'appmenu'
doas -u $PERMUSER dbus-launch gsettings set org.gnome.desktop.interface font-name "DejaVu Sans 10"
-cd $WORKDIRECTORY
+cd "$WORKDIRECTORY" || exit
doas -u $PERMUSER git clone https://github.com/zdharma-continuum/fast-syntax-highlighting
mkdir -p /usr/share/zsh/plugins
cp -rf fast-syntax-highlighting /usr/share/zsh/plugins
cd ..
-rm -rf hyprdots
+rm -rf hyprdots
doas -u $PERMUSER mkdir -p /home/$PERMUSER/.ssh
doas -u $PERMUSER mkdir -p /home/$PERMUSER/.gnupg