chore(style): add shebang, set bash strict mode, create function

This commit is contained in:
jk
2021-11-21 13:05:42 +00:00
committed by AJ ONeal
parent 91512157ab
commit 4edf137e5d
28 changed files with 57 additions and 57 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_arc() {
set -e
set -u
####################
# Install archiver #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_bat() {
set -e
set -u
###############
# Install bat #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_chromedriver() {
set -e
set -u
########################
# Install chromedriver #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_comrak() {
set -e
set -u
##################
# Install comrak #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_curlie() {
set -e
set -u
##################
# Install curlie #
+4 -4
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __dotenv_linter() {
set -e
set -u
function __init_dotenv_linter() {
#########################
# Install dotenv-linter #
@@ -38,4 +38,4 @@ function __dotenv_linter() {
}
__dotenv_linter
__init_dotenv_linter
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_fd() {
set -e
set -u
###############
# Install fd #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_ffmpeg() {
set -e
set -u
##################
# Install ffmpeg #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_fzf() {
set -e
set -u
###############
# Install fzf #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_goreleaser() {
set -e
set -u
######################
# Install goreleaser #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_hexyl() {
set -e
set -u
###############
# Install hexyl #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_jq() {
set -e
set -u
##############
# Install jq #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_k9s() {
set -e
set -u
##################
# Install k9s #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_kubectx() {
set -e
set -u
###################
# Install kubectx #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_kubens() {
set -e
set -u
###################
# Install kubens #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_lsd() {
set -e
set -u
###############
# Install lsd #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_myip() {
set -e
set -u
rm -f "$HOME/.local/bin/myip"
webi_download "$WEBI_HOST/packages/myip/myip.sh" "$HOME/.local/bin/myip"
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_pandoc() {
set -e
set -u
###################
# Install pandoc #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_powershell() {
set -e
set -u
pkg_cmd_name="pwsh"
# no ./bin prefix
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_sd() {
set -e
set -u
##################
# Install sd #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_shfmt() {
set -e
set -u
##################
# Install shfmt #
+2 -2
View File
@@ -1,6 +1,6 @@
#!/bin/bash
function __init_ssh_utils() {
function __install_ssh_utils() {
rm -f \
"$HOME/.local/bin/ssh-pubkey" \
"$HOME/.local/bin/ssh-setpass" \
@@ -20,4 +20,4 @@ function __init_ssh_utils() {
chmod a+x "$HOME/.local/bin/ssh-"*
}
__init_ssh_utils
__install_ssh_utils
-1
View File
@@ -1,5 +1,4 @@
#!/bin/bash
set -e
set -u
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_vps_addswap() {
set -e
set -u
default_size=2G
my_size=${1:-$default_size}
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_vps_utils() {
set -e
set -u
rm -f "$HOME/.local/bin/myip" "$HOME/.local/bin/vps-myip" "$HOME/.local/bin/vps-addswap" "$HOME/.local/bin/cap-net-bind"
webi_download "$WEBI_HOST/packages/vps-utils/cap-net-bind.sh" "$HOME/.local/bin/cap-net-bind"
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_watchexec() {
set -e
set -u
#####################
# Install watchexec #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_xz() {
set -e
set -u
##############
# Install xz #
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_yq() {
set -e
set -u
pkg_cmd_name="yq"