Skip to content

Commit

Permalink
better mac friendly escaping for sed
Browse files Browse the repository at this point in the history
  • Loading branch information
judovana committed Feb 27, 2024
1 parent ead29dd commit 1a5790d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ if [ ! "x$STAMP" == "x" ] ; then
ljava
arch=`uname -m | sed "s/[^a-zA-Z0-9_]//g"`
os=`uname -o | sed "s/[^a-zA-Z0-9_]//g"`
jdk=`${LJAVA} -version 2>&1 | head -n1 | sed "s/[^0-9]\+/-/g"`
jdk=`${LJAVA} -version 2>&1 | head -n1 | sed -E "s/[^0-9]+/-/g"`
time=`date +%s`
STAMP="-${os}_${arch}_jdk${jdk}_${time}"
fi
Expand Down

0 comments on commit 1a5790d

Please sign in to comment.