Skip to content

Commit

Permalink
Yet another fix to awk_sandboxing.sh: mawk (tested for errors) -> awk
Browse files Browse the repository at this point in the history
  • Loading branch information
pyllyukko committed Jan 18, 2025
1 parent d89e33f commit bbe4b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newconfs/profile.d/awk_sandboxing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# created: 16-10-2011
################################################################################
AWK_VERSION=`awk 'BEGIN{split(PROCINFO["version"],versinfo,".");print versinfo[1]}'`
if mawk --version 2>/dev/null | grep -q '^GNU Awk' && [ -n "${AWK_VERSION}" ] && [ ${AWK_VERSION} -ge 4 ]
if awk --version 2>/dev/null | grep -q '^GNU Awk' && [ -n "${AWK_VERSION}" ] && [ ${AWK_VERSION} -ge 4 ]
then
alias awk='/bin/gawk --sandbox'
fi
Expand Down

0 comments on commit bbe4b4a

Please sign in to comment.