Fix running ./bin/portzap within repo

This commit is contained in:
0x1eef 2024-05-22 23:31:35 -03:00
parent 16b8119ee4
commit 59aa25d3c3
6 changed files with 7 additions and 7 deletions

View file

@ -4,7 +4,7 @@ set -e
## ##
# variables # variables
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)} localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)}
git="${localbase}"/bin/git git=$(which git)
mode=u=rwX,g=rX,o= mode=u=rwX,g=rX,o=
gitdir=$1 gitdir=$1
commit=$2 commit=$2

View file

@ -4,7 +4,7 @@ set -e
## ##
# variables # variables
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)} localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)}
git="${localbase}"/bin/git git=$(which git)
mode=u=rwX,g=rX,o= mode=u=rwX,g=rX,o=
gitdir=$1 gitdir=$1
commit=$2 commit=$2

View file

@ -4,7 +4,7 @@ set -e
## ##
# variables # variables
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)} localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)}
git="${localbase}"/bin/git git=$(which git)
mode=u=rwX,g=rX,o= mode=u=rwX,g=rX,o=
gitdir=$1 gitdir=$1

View file

@ -5,7 +5,7 @@ set -e
# variables # variables
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)} localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)}
libexec="${localbase}"/libexec/portzap libexec="${localbase}"/libexec/portzap
git="${localbase}"/bin/git git=$(which git)
mode="u=rwX,g=rX,o=" mode="u=rwX,g=rX,o="
gitdir="$1" gitdir="$1"
branch="$2" branch="$2"

View file

@ -5,11 +5,11 @@ set -e
# variables # variables
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)} localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)}
libexec="${localbase}"/libexec/portzap libexec="${localbase}"/libexec/portzap
git="${localbase}"/bin/git git=$(which git)
mode=u=rwX,g=rX,o=
giturl=$1 giturl=$1
gitdir=$2 gitdir=$2
branch=$3 branch=$3
mode=u=rwX,g=rX,o=
## ##
# functions # functions

View file

@ -5,7 +5,7 @@ set -e
# variables # variables
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)} localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)}
libexec="${localbase}"/libexec/portzap libexec="${localbase}"/libexec/portzap
git="${localbase}"/bin/git git=$(which git)
mode="u=rwX,g=rX,o=" mode="u=rwX,g=rX,o="
gitdir=$1 gitdir=$1