emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master f204c4a6cfa: ; Use a Bourne shell-compatible form for command sub


From: Jim Porter
Subject: master f204c4a6cfa: ; Use a Bourne shell-compatible form for command substitution
Date: Fri, 5 May 2023 01:45:06 -0400 (EDT)

branch: master
commit f204c4a6cfa77fdbb2573b728110576e206b0b20
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>

    ; Use a Bourne shell-compatible form for command substitution
    
    * build-aux/git-hooks/post-commit:
    * build-aux/git-hooks/pre-push: Use `` instead of $().
---
 build-aux/git-hooks/post-commit | 2 +-
 build-aux/git-hooks/pre-push    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-aux/git-hooks/post-commit b/build-aux/git-hooks/post-commit
index 12cae09206a..e02fee48db4 100755
--- a/build-aux/git-hooks/post-commit
+++ b/build-aux/git-hooks/post-commit
@@ -34,7 +34,7 @@
 
 ### Code:
 
-HOOKS_DIR=$(dirname $0)
+HOOKS_DIR=`dirname "$0"`
 
 # Prefer gawk if available, as it handles NUL bytes properly.
 if type gawk >/dev/null 2>&1; then
diff --git a/build-aux/git-hooks/pre-push b/build-aux/git-hooks/pre-push
index 420aae3492b..a342814c1e3 100755
--- a/build-aux/git-hooks/pre-push
+++ b/build-aux/git-hooks/pre-push
@@ -31,7 +31,7 @@
 
 ### Code:
 
-HOOKS_DIR=$(dirname $0)
+HOOKS_DIR=`dirname "$0"`
 
 # Prefer gawk if available, as it handles NUL bytes properly.
 if type gawk >/dev/null 2>&1; then



reply via email to

[Prev in Thread] Current Thread [Next in Thread]