Add consistent ${libexec} assignment logic

This commit is contained in:
0x1eef 2024-05-22 22:16:03 -03:00
parent 4a732a00cd
commit 43168585f0
5 changed files with 10 additions and 7 deletions

View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -3,7 +3,8 @@ set -e
##
# variables
libexec=$(dirname "$0")
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)}
libexec="${localbase}"/libexec/portzap
gitdir=$1
installdir=$2