Add consistent ${libexec} assignment logic
This commit is contained in:
parent
4a732a00cd
commit
43168585f0
5 changed files with 10 additions and 7 deletions
|
@ -3,8 +3,8 @@ set -e
|
|||
|
||||
##
|
||||
# variables
|
||||
libexec=$(dirname "$0")
|
||||
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)}
|
||||
libexec="${localbase}"/libexec/portzap
|
||||
git="${localbase}"/bin/git
|
||||
mode="u=rwX,g=rX,o="
|
||||
gitdir="$1"
|
||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
|||
##
|
||||
# variables
|
||||
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)}
|
||||
libexec=$(dirname "$0")
|
||||
libexec="${localbase}"/libexec/portzap
|
||||
git="${localbase}"/bin/git
|
||||
giturl=$1
|
||||
gitdir=$2
|
||||
|
|
|
@ -3,11 +3,13 @@ set -e
|
|||
|
||||
##
|
||||
# variables
|
||||
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)}
|
||||
libexec="${localbase}"/libexec/portzap
|
||||
mode="u=rwX,g=rX,o="
|
||||
gitdir=$1
|
||||
installdir=$2
|
||||
revfile=$3
|
||||
libexec=$(dirname "$0")
|
||||
mode="u=rwX,g=rX,o="
|
||||
|
||||
|
||||
##
|
||||
# functions
|
||||
|
|
|
@ -3,11 +3,11 @@ set -e
|
|||
|
||||
##
|
||||
# variables
|
||||
libexec=$(dirname "$0")
|
||||
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)}
|
||||
libexec="${localbase}"/libexec/portzap
|
||||
git="${localbase}"/bin/git
|
||||
gitdir=$1
|
||||
mode="u=rwX,g=rX,o="
|
||||
gitdir=$1
|
||||
|
||||
##
|
||||
# functions
|
||||
|
|
|
@ -3,7 +3,8 @@ set -e
|
|||
|
||||
##
|
||||
# variables
|
||||
libexec=$(dirname "$0")
|
||||
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)}
|
||||
libexec="${localbase}"/libexec/portzap
|
||||
gitdir=$1
|
||||
installdir=$2
|
||||
|
||||
|
|
Loading…
Reference in a new issue