00_common.sh 237 B

12345678910111213141516
  1. #!/bin/sh
  2. is_not_holidays() {
  3. if [ -z "$1" ]; then
  4. echo "0"
  5. return
  6. fi
  7. path=$(dirname $0)
  8. if grep -w "$1" "${path}/holidays.txt" > /dev/null; then
  9. echo "0"
  10. else
  11. echo "1"
  12. fi
  13. }