Skip to content

Commit fa175bb

Browse files
PHPH
authored andcommitted
bug in missionname function for some dummy missions
a dummy mission might not contain check.sh, init.sh or static.sh, but only a gshrc file
1 parent 5fa357e commit fa175bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/missionname

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ missionname() {
1717
cd "$path"
1818
fi
1919

20+
# look for the enclosing mission directory
2021
while true
2122
do
2223
[ -f check.sh ] && break
2324
[ -f static.sh ] && break
2425
[ -f init.sh ] && break
26+
[ -f gshrc ] && break
2527
[ "$(pwd -P)" = "/" ] && break
2628
cd ..
2729
done
2830

29-
30-
3131
case "$PWD" in
3232
"$GSH_MISSIONS/"*)
3333
path=$(pwd -P)

0 commit comments

Comments
 (0)