Skip to content

Commit

Permalink
chore: consolidate shebangs and error settings to top level
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehsiao committed Dec 2, 2024
1 parent 824f052 commit 5d78fc7
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 13 deletions.
3 changes: 2 additions & 1 deletion boot.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set -e
#!/usr/bin/env bash
set -euxo pipefail

ascii_art=$(cat <<'EOF'
_ _ _
Expand Down
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

# Exit immediately if a command exits with a non-zero status
set -e
set -euxo pipefail

# Check the distribution name and version and abort if incompatible
source ~/.local/share/omakase-blue/install/check-version.sh
Expand Down
1 change: 0 additions & 1 deletion install/desktop/fonts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ unzip iafonts.zip -d iaFonts
cp iaFonts/iA-Fonts-master/iA\ Writer\ Mono/Static/iAWriterMonoS-*.ttf ~/.local/share/fonts
rm -rf iafonts.zip iaFonts

set -euxo pipefail
curl -s https://api.github.com/repos/be5invis/Iosevka/releases/latest | rg -N "browser_download_url" | rg -N --color never "SuperTTC-Iosevka-\d+\.\d+\.\d+\.zip" | sd '"' "'" | choose 1 | xargs -I % xh -F -o iosevka.zip GET %
unzip -o iosevka.zip -d iosevka
cp iosevka/*.ttc ~/.local/share/fonts
Expand Down
3 changes: 0 additions & 3 deletions install/terminal/02-core.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env bash
set -euxo pipefail

# Installs all terminal apps that are meant to be shared between host and
# container. Install from inside the devcontainer, because that has the
# libraries needed to compile.
Expand Down
3 changes: 0 additions & 3 deletions install/terminal/app-eisvogel.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env bash
set -euxo pipefail

cd /tmp
curl -s https://api.github.com/repos/Wandmalfarbe/pandoc-latex-template/releases/latest | rg -N "browser_download_url" | rg -N --color never "Eisvogel.tar.gz" | sd '"' "'" | choose 1 | xargs -I % xh -F -o eisvogel.tar.gz GET %
mkdir -p eisvogel
Expand Down
2 changes: 0 additions & 2 deletions install/terminal/app-git-sizer.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env bash
set -euxo pipefail
cd /tmp
curl --proto '=https' --tlsv1.2 -sSLO https://github.com/github/git-sizer/releases/download/v1.5.0/git-sizer-1.5.0-linux-amd64.zip
unzip -o git-sizer-1.5.0-linux-amd64.zip -d tmp-git-sizer
Expand Down
2 changes: 0 additions & 2 deletions install/terminal/app-zola.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env bash
cd /tmp
set -euxo pipefail
curl -s https://api.github.com/repos/getzola/zola/releases/latest | rg -N "browser_download_url" | rg -N --color never "zola.*linux-gnu.tar.gz" | sd '"' "'" | choose 1 | xargs -I % xh -F -o zola.tar.gz GET %
mkdir -p zola
tar xf zola.tar.gz -C zola
Expand Down

0 comments on commit 5d78fc7

Please sign in to comment.