Skip to content

Commit 1dfa2e6

Browse files
committed
Complain about $ in file names passed to the launcher
1 parent 586c603 commit 1dfa2e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

visualizer/IdealGraphVisualizer/application/src/main/launchers/bin/idealgraphvisualizer

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ while [ $# -gt 0 ] ; do
7575
case "$1" in
7676
--userdir) shift; if [ $# -gt 0 ] ; then userdir="$1"; fi
7777
;;
78-
*) args="$args \"$1\""
78+
*)
79+
if [[ "$1" == *\$* ]]; then
80+
echo "Error: Argument '$1' contains a \$ character which cannot be safely handled the launcher script" >&2
81+
exit 1
82+
fi
83+
args="$args \"$1\""
7984
;;
8085
esac
8186
shift

0 commit comments

Comments
 (0)