Skip to content

Commit

Permalink
Update rocker.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes authored Oct 11, 2024
1 parent aa94cca commit 9db5d57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ while IFS= read -r line; do
if [[ "$line" == ENV* ]]; then
# Assign variable
eval $(echo "$line" | sed 's/^ENV //g')
# Extract the variable assignment
var_assignment=$(echo "$line" | sed 's/^ENV //g')
# Extract the variable assignment; removing "; could pose problems
# But needed so that " does not get turned into %22
var_assignment=$(echo "$line" | sed 's/^ENV //g' | sed 's/"//g')
# Write the exported variable to env.txt
echo "export $var_assignment" >> ${REPO_DIR}/env.txt
elif [[ "$line" == RUN* ]]; then
Expand Down

0 comments on commit 9db5d57

Please sign in to comment.