fakestache-ssg

[ARCHIVED] A static site generator in Bash 4.
Log | Files | Refs | Submodules | README

is-in-array (129B)


      1 #!/bin/bash
      2 
      3 function is_in_array () {
      4     local e
      5     for e in "${@:2}"; do [[ "$e" == "$1" ]] && return 0; done
      6     return 1
      7 }