|
| 1 | +# Check for directories |
| 2 | +if [ ! -d "_just" ]; then |
| 3 | + echo "_just Checks:" |
| 4 | + echo "" |
| 5 | + echo " ✕ (root)/_just/" |
| 6 | + echo " ✕ (root)/_just/js/" |
| 7 | + echo " ✕ (root)/_just/style/" |
| 8 | + echo " ✕ (root)/_just/404.html" |
| 9 | + echo "" |
| 10 | + echo "Error: The _just directory is missing in the root. Please create it to proceed." >&2 |
| 11 | + exit 1 |
| 12 | +fi |
| 13 | +if [ ! -d "_just/js" ]; then |
| 14 | + echo "_just Checks:" |
| 15 | + echo "" |
| 16 | + echo " ✓ (root)/_just/" |
| 17 | + echo " ✕ (root)/_just/js/" |
| 18 | + echo " ? (root)/_just/style/" |
| 19 | + echo " ? (root)/_just/404.html" |
| 20 | + echo "" |
| 21 | + echo "Error: The js directory is missing in the _just directory. Please create it to proceed." >&2 |
| 22 | + exit 1 |
| 23 | +fi |
| 24 | +if [ ! -d "_just/style" ]; then |
| 25 | + echo "_just Checks:" |
| 26 | + echo "" |
| 27 | + echo " ✓ (root)/_just/" |
| 28 | + echo " ✓ (root)/_just/js/" |
| 29 | + echo " ✕ (root)/_just/style/" |
| 30 | + echo " ? (root)/_just/404.html" |
| 31 | + echo "" |
| 32 | + echo "Error: The style directory is missing in the _just directory. Please create it to proceed." >&2 |
| 33 | + exit 1 |
| 34 | +fi |
| 35 | +if [ ! -f "_just/404.html" ]; then |
| 36 | + echo "_just Checks:" |
| 37 | + echo "" |
| 38 | + echo " ✓ (root)/_just/" |
| 39 | + echo " ✓ (root)/_just/js/" |
| 40 | + echo " ✓ (root)/_just/style/" |
| 41 | + echo " ✕ (root)/_just/404.html" |
| 42 | + echo "" |
| 43 | + echo "Error: The _just/404.html file is missing." >&2 |
| 44 | + exit 1 |
| 45 | +fi |
| 46 | +echo "_just Checks:" |
| 47 | +echo "" |
| 48 | +echo " ✓ (root)/_just/" |
| 49 | +echo " ✓ (root)/_just/js/" |
| 50 | +echo " ✓ (root)/_just/style/" |
| 51 | +echo " ✓ (root)/_just/404.html" |
| 52 | +echo "" |
0 commit comments