Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash

greet() {
  local name="$1"
  echo "hello, $name"
}

if [ -d "$HOME" ]; then
  echo "home exists"
elif [ -f /etc/passwd ]; then
  echo "passwd"
else
  echo "neither"
fi

for f in a b c; do
  echo "$f"
done

while read -r line; do
  echo "$line"
done

case "$1" in
  start)
    echo "starting"
    ;;
  *)
    echo "usage"
    ;;
esac