From 717c700fac7b887e4356a3ed61b44f4c1d15b94a Mon Sep 17 00:00:00 2001 From: Lee Ockert Date: Mon, 23 Oct 2023 12:00:43 -0400 Subject: [PATCH] Fix syntax error caused by extra spacing Bash variable assignment requires the = operator to immediately follow the variable name, otherwise it will result in a syntax error. This commit fixes a syntax error of that nature that would prevent the preservation of atime and mtime of the enclosing directory of a file that was linked to an identical file. --- dirdedupe.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dirdedupe.sh b/dirdedupe.sh index 0d13464..68b09bf 100755 --- a/dirdedupe.sh +++ b/dirdedupe.sh @@ -64,7 +64,7 @@ fi ############################################################################ ## MAKE A TEMPORARY FILE FOR PRESERVING TIMESTAMPS ## ############################################################################ -TEMPFILE = $(mktemp) +TEMPFILE=$(mktemp) trap "rm -f ${TEMPFILE}" EXIT ############################################################################