diff --git a/install-hooks/font/pre-install b/install-hooks/font/pre-install index 79b6c3a..d938d05 100755 --- a/install-hooks/font/pre-install +++ b/install-hooks/font/pre-install @@ -1,11 +1,13 @@ #!/bin/sh -sub="$HOME/.local/share/fonts" +set -e -mkdir -p "$sub" -cd "$sub" +sub="${HOME}/.local/share/fonts" + +mkdir -p "${sub}" +cd "${sub}" wget 'https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip' -unzip FiraCode.zip -d "$sub" +unzip FiraCode.zip -d "${sub}" git clone 'https://github.com/powerline/fonts.git' --depth=1 cd fonts -./install.sh \ No newline at end of file +./install.sh diff --git a/install-hooks/gpg/post-install b/install-hooks/gpg/post-install index 826aa41..b55c96a 100755 --- a/install-hooks/gpg/post-install +++ b/install-hooks/gpg/post-install @@ -1,4 +1,5 @@ #!/bin/sh -cat "$SUB/.gnupg/gpg.conf" >> "$HOME/.gnupg/gpg.conf" -echo -e "default-cache-ttl 1\nmax-cache-ttl 1" > "$HOME/.gnupg/gpg-agent.conf"; echo RELOADAGENT | gpg-connect-agent \ No newline at end of file +cat "${SUB}/.gnupg/gpg.conf" >> "${HOME}/.gnupg/gpg.conf" +printf "%s\n%s" "default-cache-ttl 1" "max-cache-ttl 1" > "${HOME}/.gnupg/gpg-agent.conf" +echo RELOADAGENT | gpg-connect-agent diff --git a/install-hooks/ranger/post-install b/install-hooks/ranger/post-install index 0048cfd..2fbdfab 100755 --- a/install-hooks/ranger/post-install +++ b/install-hooks/ranger/post-install @@ -1,4 +1,4 @@ #!/bin/sh -mkdir -p "$SANDBOX_PATH/.config/ranger/plugins" -git clone https://github.com/alexanderjeurissen/ranger_devicons "$SANDBOX_PATH/.config/ranger/plugins/ranger_devicons" \ No newline at end of file +mkdir -p "${SANDBOX_PATH}/.config/ranger/plugins" +git clone https://github.com/alexanderjeurissen/ranger_devicons "${SANDBOX_PATH}/.config/ranger/plugins/ranger_devicons" diff --git a/install-hooks/ssh/post-install b/install-hooks/ssh/post-install index f12fa6a..c9a808a 100755 --- a/install-hooks/ssh/post-install +++ b/install-hooks/ssh/post-install @@ -1,3 +1,3 @@ #!/bin/sh -cat "$SUB/.ssh/config" >> "$HOME/.ssh/config" \ No newline at end of file +cat "${SUB}/.ssh/config" >> "${HOME}/.ssh/config" diff --git a/install-hooks/tmux/post-install b/install-hooks/tmux/post-install index e3fb9f2..d1d7ee3 100755 --- a/install-hooks/tmux/post-install +++ b/install-hooks/tmux/post-install @@ -1,4 +1,4 @@ #!/bin/sh command -v systemctl >/dev/null && systemctl --user enable --now tmux -git clone https://github.com/tmux-plugins/tpm "$HOME/.config/tmux/plugins/tpm" | true \ No newline at end of file +git clone https://github.com/tmux-plugins/tpm "${HOME}/.config/tmux/plugins/tpm" | true