script to search for a string in a post and pass it to snacPost script for a clean output
0
0
1
| 1 | "snacSearch.sh" 22L, 418B 18,3 All |
| 2 | #!/usr/bin/env bash |
| 3 | |
| 4 | if [ -z "$1" ]; then |
| 5 | echo "Usage: $0 <NEEDLE>" |
| 6 | exit 1 |
| 7 | fi |
| 8 | |
| 9 | if [[ -z "$SNAC_USER" || -z "$SNAC_BASEDIR" ]]; then |
| 10 | echo "Error: SNAC_USER and SNAC_BASEDIR must be set." >&2 |