Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
image/games/base/entrypoint: Localize function variables
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Reichl <[email protected]>
  • Loading branch information
Timo Reichl committed Sep 27, 2022
1 parent 03978d1 commit bfa0308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image/games/base/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ _fix_steamcmd_dumps_ownership() {

# Helper function to fix tmux session dir ownership
_fix_tmux_session_dir_ownership() {
tmux_socket_dir=$(dirname ${STEAMCMD_SERVER_SESSION_SOCKET})
local tmux_socket_dir=$(dirname ${STEAMCMD_SERVER_SESSION_SOCKET})

echo "Fixing ownership of ${tmux_socket_dir}"
mkdir -p ${tmux_socket_dir}
Expand All @@ -54,7 +54,7 @@ _prepare_ssh_host_key() {

# Helper function to prepare the SSH server
_prepare_ssh_server() {
_ssh_keys="${STEAMCMD_SSH_AUTHORIZED_KEYS}"
local _ssh_keys="${STEAMCMD_SSH_AUTHORIZED_KEYS}"

if [[ ${_ssh_keys} != ssh-* ]]; then
_ssh_keys=$(echo -n "${STEAMCMD_SSH_AUTHORIZED_KEYS}" | base64 -d 2>&1) > /dev/null
Expand Down

0 comments on commit bfa0308

Please sign in to comment.