fabiogra commited on
Commit
c88f061
1 Parent(s): e3a6fa0

fix: read secret into a variable

Browse files
Files changed (1) hide show
  1. scripts/prepare_samples.sh +3 -0
scripts/prepare_samples.sh CHANGED
@@ -1,5 +1,8 @@
1
  #!/bin/bash
2
 
 
 
 
3
  # Check if the "PREPARE_SAMPLES" environment variable is set
4
  if [ -z "${PREPARE_SAMPLES}" ]; then
5
  echo "PREPARE_SAMPLES is unset or set to the empty string. Skipping sample preparation."
 
1
  #!/bin/bash
2
 
3
+ # Read the secret into a variable
4
+ export PREPARE_SAMPLES=$(cat /run/secrets/PREPARE_SAMPLES)
5
+
6
  # Check if the "PREPARE_SAMPLES" environment variable is set
7
  if [ -z "${PREPARE_SAMPLES}" ]; then
8
  echo "PREPARE_SAMPLES is unset or set to the empty string. Skipping sample preparation."