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

This commit is contained in:
jk
2021-11-21 13:14:41 +01:00
committed by AJ ONeal
parent 91512157ab
commit 4edf137e5d
28 changed files with 57 additions and 57 deletions

View File

@@ -1,7 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_arc() {
set -e
set -u
####################
# Install archiver #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_bat() {
set -e
set -u
###############
# Install bat #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_chromedriver() {
set -e
set -u
########################
# Install chromedriver #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_comrak() {
set -e
set -u
##################
# Install comrak #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_curlie() {
set -e
set -u
##################
# Install curlie #

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

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_fd() {
set -e
set -u
###############
# Install fd #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_ffmpeg() {
set -e
set -u
##################
# Install ffmpeg #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_fzf() {
set -e
set -u
###############
# Install fzf #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_goreleaser() {
set -e
set -u
######################
# Install goreleaser #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_hexyl() {
set -e
set -u
###############
# Install hexyl #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_jq() {
set -e
set -u
##############
# Install jq #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_k9s() {
set -e
set -u
##################
# Install k9s #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_kubectx() {
set -e
set -u
###################
# Install kubectx #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_kubens() {
set -e
set -u
###################
# Install kubens #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_lsd() {
set -e
set -u
###############
# Install lsd #

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"

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_pandoc() {
set -e
set -u
###################
# Install pandoc #

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

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_sd() {
set -e
set -u
##################
# Install sd #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_shfmt() {
set -e
set -u
##################
# Install shfmt #

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

View File

@@ -1,5 +1,4 @@
#!/bin/bash
set -e
set -u

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}

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"

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_watchexec() {
set -e
set -u
#####################
# Install watchexec #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_xz() {
set -e
set -u
##############
# Install xz #

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
set -u
function __init_yq() {
set -e
set -u
pkg_cmd_name="yq"