Spaces:
Running
Running
fabiogra
commited on
Commit
·
6182cce
1
Parent(s):
b0a9f8f
fix: PREPARE_SAMPLES env var with python inline script
Browse files
scripts/prepare_samples.sh
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
# Check if the "PREPARE_SAMPLES" environment variable is set
|
4 |
-
|
|
|
|
|
5 |
echo "PREPARE_SAMPLES is unset or set to the empty string. Skipping sample preparation."
|
6 |
exit 0
|
7 |
fi
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
# Check if the "PREPARE_SAMPLES" environment variable is set
|
4 |
+
output=$(python -c "import os; print('0' if not os.getenv('PREPARE_SAMPLES') else '1')")
|
5 |
+
|
6 |
+
if [ "$output" -eq "0" ]; then
|
7 |
echo "PREPARE_SAMPLES is unset or set to the empty string. Skipping sample preparation."
|
8 |
exit 0
|
9 |
fi
|