summaryrefslogtreecommitdiffstats
path: root/modules/sleep
blob: 89712cac62f3a734e4b195bc89d172499251a7dd (plain)
1
2
3
4
5
6
7
8
9
10
#! /bin/sh
case "$1" in
  (--help) echo "pause for NUMBER seconds" ;;
  (*)
    if echo "$1" | grep -Eq '^([0-9]+(\.[0-9]*)?|[0-9]*\.[0-9]+)$' ; then
      sleep "$1"
    else
      echo 'FAIL: $1 is not a number'
    fi
esac