File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 121121$( declare -p FLAGS)
122122
123123if [[ -f "$PASSWORDFILE " ]]; then
124- export PASSWORD="\$ (cat ' $PASSWORDFILE ' )"
124+ export PASSWORD="\$ (<" $PASSWORDFILE " )"
125125fi
126126
127127if [[ -f "$HASHEDPASSWORDFILE " ]]; then
128- export HASHED_PASSWORD="\$ (cat ' $HASHEDPASSWORDFILE ' )"
128+ export HASHED_PASSWORD="\$ (<" $HASHEDPASSWORDFILE " )"
129129fi
130130
131131if [[ -f "$GITHUBAUTHTOKENFILE " ]]; then
132- export GITHUB_TOKEN="\$ (cat ' $GITHUBAUTHTOKENFILE ' )"
132+ export GITHUB_TOKEN="\$ (<" $GITHUBAUTHTOKENFILE " )"
133133fi
134134
135135code-server "\$ {FLAGS[@]}" "$CODE_SERVER_WORKSPACE " >"$LOGFILE " 2>&1
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ check "code-server running" pgrep -f 'code-server/lib/node.*/code-server'
1010check " code-server listening" lsof -i " @127.0.0.1:8080"
1111
1212cat /tmp/code-server.log
13- check " code-server github-auth-token-file" grep $ ' export GITHUB_TOKEN="$(cat \' /tmp/code-server-github-auth-token\' )"' < /usr/local/bin/code-server-entrypoint
13+ check " code-server github-auth-token-file" grep ' export GITHUB_TOKEN="$(<" /tmp/code-server-github-auth-token" )"' < /usr/local/bin/code-server-entrypoint
1414
1515# Report results
1616reportResults
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ check "code-server version" code-server --version
99check " code-server running" pgrep -f ' code-server/lib/node.*/code-server'
1010check " code-server listening" lsof -i " @127.0.0.1:8080"
1111
12- check " code-server hashed-password-file" grep $ ' export HASHED_PASSWORD="$(cat \' /tmp/code-server-hashed-password\' )"' < /usr/local/bin/code-server-entrypoint
12+ check " code-server hashed-password-file" grep ' export HASHED_PASSWORD="$(<" /tmp/code-server-hashed-password" )"' < /usr/local/bin/code-server-entrypoint
1313check " code-server hashed-password" grep ' Using password from $HASHED_PASSWORD' < /tmp/code-server.log
1414
1515# Report results
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ check "code-server version" code-server --version
99check " code-server running" pgrep -f ' code-server/lib/node.*/code-server'
1010check " code-server listening" lsof -i " @127.0.0.1:8080"
1111
12- check " code-server password-file" grep $' export PASSWORD="$(cat \' /tmp/code-server-password\' )"' < /usr/local/bin/code-server-entrypoint
12+ check " code-server password-file" grep $' export PASSWORD="$(<" /tmp/code-server-password" )"' < /usr/local/bin/code-server-entrypoint
1313check " code-server password" grep ' Using password from $PASSWORD' < /tmp/code-server.log
1414
1515# Report results
You canβt perform that action at this time.
0 commit comments