chore(lint): add set -e; set -u for strict bash

This commit is contained in:
Marcin Woźniak
2022-03-07 10:24:04 +00:00
committed by AJ ONeal
parent bf2dae86a0
commit d2f7574b44
25 changed files with 50 additions and 0 deletions
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_arc() {
echo "'archiver@${WEBI_TAG:-stable}' is an alias for 'arc@${WEBI_VERSION:-}'"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_git_config_gpg() {
echo "'git-gpg-init' is a deprecated alias for 'git-config-gpg'"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_gpg() {
echo "'gnupg@${WEBI_TAG:-stable}' is an alias for 'gpg@${WEBI_VERSION:-}'"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_golang() {
echo "'go@${WEBI_TAG:-stable}' is an alias for 'golang@${WEBI_VERSION:-}'"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_iterm2_themes() {
echo "'iterm-color-schemes@${WEBI_TAG:-stable}' is an alias for 'iterm2-themes@${WEBI_VERSION:-}'"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_iterm2_themes() {
echo "'iterm-themes@${WEBI_TAG:-stable}' is an alias for 'iterm2-themes@${WEBI_VERSION:-}'"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_iterm2_utils() {
echo "'iterm-utils@${WEBI_TAG:-stable}' is an alias for 'iterm2-utils@${WEBI_VERSION:-}'"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
echo "'iterm@${WEBI_TAG:-stable}' is an alias for 'iterm2@${WEBI_VERSION:-}'"
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_iterm2_themes() {
echo "'iterm2-color-schemes@${WEBI_TAG:-stable}' is an alias for 'iterm2-themes@${WEBI_VERSION:-}'"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __iterm2_utils() {
curl -fsSL https://iterm2.com/shell_integration/install_shell_integration_and_utilities.sh | bash
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_nerdfont() {
echo "'nerd-font' is an alias for 'nerdfont'"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __todo_nerdfonts() {
echo "The full Nerd Fonts patcher is not yet available."
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __todo_nerdfonts() {
echo "The full Nerd Fonts patcher is not yet available."
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_postgres() {
echo "'postgresql' is an alias for 'postgres'"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __init_prettier() {
if [ -z "$(npm --version 2> /dev/null)" ]; then
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_powershell() {
echo "'pwsh@${WEBI_TAG:-stable}' is an alias for 'powershell@${WEBI_VERSION:-}'"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_rg() {
echo "'ripgrep@${WEBI_TAG:-}' (project) is an alias for 'rg@${WEBI_VERSION:-}' (command)"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __redirect_alias_rustlang() {
echo "'rust' is an alias for 'rustlang'"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __install_rust() {
# Straight from https://rustup.rs/
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __install_ssh_utils() {
rm -f \
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __init_vim_beyondcode() {
# mostly lightweight, or essential
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __init_vim_essentials() {
webi \
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __pass() {
echo "WSL (Windows Subsystem for Linux) can only be installed from Windows 10"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __pass() {
echo "WSL 1 (Windows Subsystem for Linux) can only be installed from Windows 10"
+2
View File
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -u
function __pass() {
echo "WSL 2 (Windows Subsystem for Linux with Hyper-V) can only be installed from Windows 10"