Assign ${mode} before command line args

This commit is contained in:
0x1eef 2024-05-22 22:32:43 -03:00
parent 43168585f0
commit e17ecd9244
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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