Replace hard-coded references to /usr/local/

This commit is contained in:
0x1eef 2024-05-22 21:49:35 -03:00
parent f14591d42b
commit 6cde6f8ab6
6 changed files with 7 additions and 6 deletions

View file

@ -3,7 +3,7 @@ set -e
##
# variables
localbase=${LOCALBASE:-/usr/local}
localbase=${LOCALBASE:-$(realpath $(dirname $0)/../..)}
git="${localbase}"/bin/git
gitdir=$1
commit=$2

View file

@ -3,7 +3,7 @@ set -e
##
# variables
localbase=${LOCALBASE:-/usr/local}
localbase=${LOCALBASE:-$(realpath $(dirname $0)/../..)}
git="${localbase}"/bin/git
gitdir=$1
commit=$2

View file

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

View file

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

View file

@ -3,7 +3,7 @@ set -e
##
# variables
localbase=${LOCALBASE:-/usr/local}
localbase=${LOCALBASE:-$(realpath $(dirname $0)/../..)}
libexec=$(dirname "$0")
git="${localbase}"/bin/git
giturl=$1

View file

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