aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/templates/syntax_check.sh
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-10-04 19:28:06 -0700
committerDan Fandrich <danf@mageia.org>2024-10-04 19:28:06 -0700
commit2c7da66570999dcd21f11f976dc6ec27d820f45c (patch)
treeb97dd9f25df691c66b2be31b658cc6fec638d47e /modules/subversion/templates/syntax_check.sh
parenta69863ece1973cf3eae488f30c657b57dfb89779 (diff)
downloadpuppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar.gz
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar.bz2
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar.xz
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.zip
Use @ when accessing variables in templates
Access without the @ symbol is the older method and is discouraged.
Diffstat (limited to 'modules/subversion/templates/syntax_check.sh')
-rw-r--r--modules/subversion/templates/syntax_check.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/subversion/templates/syntax_check.sh b/modules/subversion/templates/syntax_check.sh
index 3960cdab..76141e54 100644
--- a/modules/subversion/templates/syntax_check.sh
+++ b/modules/subversion/templates/syntax_check.sh
@@ -6,13 +6,13 @@ export PATH="/bin/:/sbin/:/usr/bin/:/usr/sbin/:/usr/local/bin:/usr/local/sbin/"
changed=`svnlook changed -t "$TXN" "$REPOS"`
files=`echo $changed | awk '{print $2}'`
-if echo $files | grep "<%= regexp_ext %>"
+if echo $files | grep "<%= @regexp_ext %>"
then
- svnlook cat -t "$TXN" "$REPOS" "$files" | <%= check_cmd %>
+ svnlook cat -t "$TXN" "$REPOS" "$files" | <%= @check_cmd %>
if [ $? -ne 0 ]
then
echo "Syntax error in $files." 1>&2
- echo "Check it with <%= check_cmd %>" 1>&2
+ echo "Check it with <%= @check_cmd %>" 1>&2
exit 1
fi
fi