'set -e' in bin/portzap, libexec/
And mv 'commands/*' to 'functions/*'.
This commit is contained in:
parent
de49e10ef8
commit
367a9af511
7 changed files with 9 additions and 7 deletions
12
bin/portzap
12
bin/portzap
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
base_dir=$(dirname "$0")
|
base_dir=$(dirname "$0")
|
||||||
|
@ -13,13 +13,11 @@ libexec_dir=$(realpath "$base_dir/../libexec/portzap/")
|
||||||
clone_mask=007
|
clone_mask=007
|
||||||
pull_mask=007
|
pull_mask=007
|
||||||
|
|
||||||
# Commands
|
|
||||||
. "$libexec_dir/commands/portzap-install"
|
|
||||||
. "$libexec_dir/commands/portzap-pull"
|
|
||||||
. "$libexec_dir/commands/portzap-clone"
|
|
||||||
|
|
||||||
# Functions
|
# 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
|
case $1 in
|
||||||
"clone")
|
"clone")
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
ports_dir=$1
|
ports_dir=$1
|
||||||
libexec_dir=$2
|
libexec_dir=$2
|
||||||
group=_portzap
|
group=_portzap
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
dest=$1
|
dest=$1
|
||||||
group=_portzap
|
group=_portzap
|
||||||
mode=u=rw,g=rw,o=
|
mode=u=rw,g=rw,o=
|
||||||
|
|
Loading…
Reference in a new issue