Skip to content

Commit 40625a7

Browse files
authored
fix: startparameters set instead of parms and call function to eval parms once (#3340)
1 parent d0e38df commit 40625a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lgsm/functions/command_start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn_start_tmux(){
7272
echo "${version}" >> "${lockdir}/${selfname}.lock"
7373
echo "${port}" >> "${lockdir}/${selfname}.lock"
7474
cd "${executabledir}" || exit
75-
tmux new-session -d -x "${sessionwidth}" -y "${sessionheight}" -s "${sessionname}" ${preexecutable} ${executable} ${parms} 2> "${lgsmlogdir}/.${selfname}-tmux-error.tmp"
75+
tmux new-session -d -x "${sessionwidth}" -y "${sessionheight}" -s "${sessionname}" ${preexecutable} ${executable} ${startparameters} 2> "${lgsmlogdir}/.${selfname}-tmux-error.tmp"
7676

7777
# Create logfile.
7878
touch "${consolelog}"

linuxgsm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ else
466466
eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/_default.cfg")"
467467
fi
468468
}
469-
469+
fn_reload_startparameters
470470
# Load the linuxgsm.sh in to tmpdir. If missing download it.
471471
if [ ! -f "${tmpdir}/linuxgsm.sh" ]; then
472472
fn_fetch_file_github "" "linuxgsm.sh" "${tmpdir}" "chmodx" "norun" "noforcedl" "nomd5"

0 commit comments

Comments
 (0)