Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions scripts/linuxcnc.in
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,13 @@ if [ -z "$INIFILE" ] ; then
# nothing specified, get from the user
# it returns either a path, or nothing at all
INIFILE=$($PICKCONFIG)
# if name is xxxx.demo, then:
# execute xxxx.demo in background and exit
if [ "${INIFILE%%.demo}".demo = "${INIFILE}" ] ; then
"${INIFILE}" &
exit 0
fi
fi

# if name is xxxx.demo (picked now, or picked last time and reused with -l),
# then execute xxxx.demo in background and exit
if [ "${INIFILE%%.demo}".demo = "${INIFILE}" ] ; then
"${INIFILE}" &
exit 0
fi

if [ -z "$INIFILE" ] ; then
Expand Down