'set -e' in bin/portzap, libexec/

And mv 'commands/*' to 'functions/*'.
This commit is contained in:
0x1eef 2024-02-27 00:26:46 -03:00
parent de49e10ef8
commit 367a9af511
7 changed files with 9 additions and 7 deletions

View file

@ -1,5 +1,5 @@
#!/bin/sh
set -e
# Variables
base_dir=$(dirname "$0")
@ -13,13 +13,11 @@ libexec_dir=$(realpath "$base_dir/../libexec/portzap/")
clone_mask=007
pull_mask=007
# Commands
. "$libexec_dir/commands/portzap-install"
. "$libexec_dir/commands/portzap-pull"
. "$libexec_dir/commands/portzap-clone"
# Functions
. "$libexec_dir/functions/requirements.sh"
. "$libexec_dir/functions/portzap-install"
. "$libexec_dir/functions/portzap-pull"
. "$libexec_dir/functions/portzap-clone"
. "$libexec_dir/functions/requirements"
case $1 in
"clone")

View file

@ -1,4 +1,6 @@
#!/bin/sh
set -e
ports_dir=$1
libexec_dir=$2
group=_portzap

View file

@ -1,4 +1,6 @@
#!/bin/sh
set -e
dest=$1
group=_portzap
mode=u=rw,g=rw,o=