Skip to content

Commit

Permalink
escape paths when building profile
Browse files Browse the repository at this point in the history
  • Loading branch information
capitalist committed Jul 19, 2022
1 parent 099b8b9 commit e1ec991
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ ln -s $BUILD_DIR/$ORACLE_INSTANT_CLIENT_DIR $BUILD_DIR/$ORACLE_INSTANT_CLIENT_D

indent "Create profile.d script"
mkdir -p $BUILD_DIR/.profile.d
cat << EOF > $BUILD_DIR/.profile.d/010_oracle.sh
cat << EOF > $BUILD_DIR/.profile.d/020_oracle.sh
#!/usr/bin/env bash
export ORACLE_HOME=/app/vendor/instantclient_21_5
export LD_LIBRARY_PATH=$ORACLE_HOME:$LD_LIBRARY_PATH
export PATH=$ORACLE_HOME:$PATH
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH="\$ORACLE_HOME:\$LD_LIBRARY_PATH"
export PATH="\$ORACLE_HOME:\$PATH"
export TNS_ADMIN="\$ORACLE_HOME/network/admin"
EOF

indent "Done!"

0 comments on commit e1ec991

Please sign in to comment.