Posted October 26, 2023
Hello!
Maybe anyone has a clue whats going on.
I could run the game without problems on Garuda Linux.
But on Debian 12 i get some errors which are not easy to solve for me.
Here is the output:
lux@debian1:~/GOG Games/Drox Operative 2$ sh start.sh
start.sh: 6: Bad substitution
start.sh: 8: source: not found
start.sh: 11: get_gameinfo: not found
start.sh: 12: get_gameinfo: not found
start.sh: 13: get_gameinfo: not found
start.sh: 28: define_option: not found
start.sh: 31: standard_options: not found
lux@debian1:~/GOG Games/Drox Operative 2$ cat -n start.sh
1 #!/bin/bash
2 # GOG.com (www.gog.com)
3 # Game
4
5 # Initialization
6 CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
7 cd "${CURRENT_DIR}"
8 source support/gog_com.shlib
9
10 # Game info
11 GAME_NAME="$(get_gameinfo 1)"
12 VERSION="$(get_gameinfo 2)"
13 VERSION_DEV="$(get_gameinfo 3)"
14
15 # Actions
16 run_game() {
17 echo "Running ${GAME_NAME}"
18 cd "${CURRENT_DIR}/game"
19 chmod +x *
20 ./"DroxOperative2"
21
22 }
23 default() {
24 run_game
25 }
26
27 # Options
28 define_option "-s" "--start" "start ${GAME_NAME}" "run_game" "$@"
29
30 # Defaults
31 standard_options "$@"
Maybe anyone has a clue whats going on.
I could run the game without problems on Garuda Linux.
But on Debian 12 i get some errors which are not easy to solve for me.
Here is the output:
lux@debian1:~/GOG Games/Drox Operative 2$ sh start.sh
start.sh: 6: Bad substitution
start.sh: 8: source: not found
start.sh: 11: get_gameinfo: not found
start.sh: 12: get_gameinfo: not found
start.sh: 13: get_gameinfo: not found
start.sh: 28: define_option: not found
start.sh: 31: standard_options: not found
lux@debian1:~/GOG Games/Drox Operative 2$ cat -n start.sh
1 #!/bin/bash
2 # GOG.com (www.gog.com)
3 # Game
4
5 # Initialization
6 CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
7 cd "${CURRENT_DIR}"
8 source support/gog_com.shlib
9
10 # Game info
11 GAME_NAME="$(get_gameinfo 1)"
12 VERSION="$(get_gameinfo 2)"
13 VERSION_DEV="$(get_gameinfo 3)"
14
15 # Actions
16 run_game() {
17 echo "Running ${GAME_NAME}"
18 cd "${CURRENT_DIR}/game"
19 chmod +x *
20 ./"DroxOperative2"
21
22 }
23 default() {
24 run_game
25 }
26
27 # Options
28 define_option "-s" "--start" "start ${GAME_NAME}" "run_game" "$@"
29
30 # Defaults
31 standard_options "$@"
No posts in this topic were marked as the solution yet. If you can help, add your reply