Skip to content

Commit 5073a79

Browse files
authored
medley.sh: Fix handling of '--title -' in medley_run.sh and medley_args.sh (#1710)
* Fix handilng of '--title -' in medley_run.sh and medley_args.sh * medley.sh: Fix typo in default title introduced in last commit
1 parent 8e22a4d commit 5073a79

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

scripts/medley/medley.command

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ run_id="default"
593593
screensize=""
594594
sysout_arg=""
595595
sysout_stage=""
596-
title="Medley Interlisp %i"
596+
title=""
597597
use_vnc=false
598598
windows=false
599599
maikodir_arg=""
@@ -1235,6 +1235,10 @@ if [ -z "${LDEKBDTYPE}" ]; then
12351235
fi
12361236
12371237
# figure out title situation
1238+
if [ -z "${title}" ]
1239+
then
1240+
title="Medley Interlisp %i"
1241+
fi
12381242
if [ ! "${run_id}" = default ]
12391243
then
12401244
title="$(printf %s "${title}" | sed -e "s/%i/:: ${run_id}/")"

scripts/medley/medley_args.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ run_id="default"
2727
screensize=""
2828
sysout_arg=""
2929
sysout_stage=""
30-
title="Medley Interlisp %i"
30+
title=""
3131
use_vnc=false
3232
windows=false
3333
maikodir_arg=""

scripts/medley/medley_run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ if [ -z "${LDEKBDTYPE}" ]; then
182182
fi
183183

184184
# figure out title situation
185+
if [ -z "${title}" ]
186+
then
187+
title="Medley Interlisp %i"
188+
fi
185189
if [ ! "${run_id}" = default ]
186190
then
187191
title="$(printf %s "${title}" | sed -e "s/%i/:: ${run_id}/")"

0 commit comments

Comments
 (0)