mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
refactor(posix): remove function prefixes from all shell files
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
set -u
|
||||
|
||||
function __git_gpg_init() {
|
||||
__git_gpg_init() {
|
||||
export PATH="$HOME/.local/opt/gnupg/bin:$PATH"
|
||||
export PATH="$HOME/.local/opt/gnupg/bin/pinentry-mac.app/Contents/MacOS:$PATH"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
set -u
|
||||
|
||||
function __install_git_gpg_init() {
|
||||
__install_git_gpg_init() {
|
||||
MY_CMD="git-config-gpg"
|
||||
|
||||
rm -f "$HOME/.local/bin/$MY_CMD"
|
||||
@@ -10,7 +10,7 @@ function __install_git_gpg_init() {
|
||||
chmod a+x "$HOME/.local/bin/$MY_CMD"
|
||||
}
|
||||
|
||||
function __check_gpg_pubkey_exists() {
|
||||
__check_gpg_pubkey_exists() {
|
||||
if ! command -v gpg; then
|
||||
"$HOME/.local/bin/webi" gpg-pubkey
|
||||
export PATH="$HOME/.local/opt/gnupg/bin:$PATH"
|
||||
@@ -18,7 +18,7 @@ function __check_gpg_pubkey_exists() {
|
||||
fi
|
||||
}
|
||||
|
||||
function __check_gpg_exists() {
|
||||
__check_gpg_exists() {
|
||||
if ! command -v gpg; then
|
||||
"$HOME/.local/bin/webi" gpg
|
||||
export PATH="$HOME/.local/opt/gnupg/bin:$PATH"
|
||||
|
||||
Reference in New Issue
Block a user