]> git.eshelyaron.com Git - emacs.git/commitdiff
; Use a Bourne shell-compatible form for command substitution
authorJim Porter <jporterbugs@gmail.com>
Fri, 5 May 2023 05:43:13 +0000 (22:43 -0700)
committerJim Porter <jporterbugs@gmail.com>
Fri, 5 May 2023 05:44:40 +0000 (22:44 -0700)
* build-aux/git-hooks/post-commit:
* build-aux/git-hooks/pre-push: Use `` instead of $().

build-aux/git-hooks/post-commit
build-aux/git-hooks/pre-push

index 12cae09206ab12d46cf8c17ab684f6057c20744a..e02fee48db415903deee776a9cf8bddf3772c708 100755 (executable)
@@ -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
index 420aae3492b06078536fc2568f59171563134123..a342814c1e334450d0b635bb8d7fe547ef13ca1c 100755 (executable)
@@ -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