From e17ecd92447acbb19a3e06638dfe964614ec4f71 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Wed, 22 May 2024 22:32:43 -0300 Subject: [PATCH] Assign ${mode} before command line args --- libexec/portzap/git-changed-files | 2 +- libexec/portzap/git-removed-files | 2 +- libexec/portzap/git-rev | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libexec/portzap/git-changed-files b/libexec/portzap/git-changed-files index 0a9b45f..7bce36e 100644 --- a/libexec/portzap/git-changed-files +++ b/libexec/portzap/git-changed-files @@ -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 diff --git a/libexec/portzap/git-removed-files b/libexec/portzap/git-removed-files index 2e37835..b8e88eb 100644 --- a/libexec/portzap/git-removed-files +++ b/libexec/portzap/git-removed-files @@ -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 diff --git a/libexec/portzap/git-rev b/libexec/portzap/git-rev index 5655b4c..08dabb3 100644 --- a/libexec/portzap/git-rev +++ b/libexec/portzap/git-rev @@ -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