tatasauce commited on
Commit
0bce889
·
verified ·
1 Parent(s): 6ff3f8f

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +2 -1
entrypoint.sh CHANGED
@@ -1,3 +1,4 @@
 
1
  set -e
2
 
3
  CONFIG_FILE_PATH="/home/api.yaml"
@@ -15,7 +16,7 @@ else
15
  if [ -f "$CONFIG_FILE_PATH" ]; then
16
  echo "DEBUG: File $CONFIG_FILE_PATH created successfully. Size: $(wc -c < "$CONFIG_FILE_PATH") bytes."
17
  echo "DEBUG: First few lines (without sensitive info):"
18
- head -n 3 "$CONFIG_FILE_PATH" | grep -v "api:" | grep -v "password"
19
  else
20
  echo "ERROR: File $CONFIG_FILE_PATH was NOT created."
21
  exit 1
 
1
+ #!/bin/sh
2
  set -e
3
 
4
  CONFIG_FILE_PATH="/home/api.yaml"
 
16
  if [ -f "$CONFIG_FILE_PATH" ]; then
17
  echo "DEBUG: File $CONFIG_FILE_PATH created successfully. Size: $(wc -c < "$CONFIG_FILE_PATH") bytes."
18
  echo "DEBUG: First few lines (without sensitive info):"
19
+ head -n 3 "$CONFIG_FILE_PATH" | grep -v "api:" | grep -v "password" || echo "No non-sensitive lines to display"
20
  else
21
  echo "ERROR: File $CONFIG_FILE_PATH was NOT created."
22
  exit 1