summaryrefslogtreecommitdiff
path: root/linux/deb/01-fs-hello-kamal/package/usr/bin/fs-hello-kamal
blob: b8c827c5f6d7fcdf60c14e8783a9bdd4b2ffd4e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# Define a function that sends messages to stderr.
errcho() {
  echo "$@" 1>&2;
}

# Source the configuration file.
. /etc/fs-hello-kamal.conf

if [ "$1" = "" ]; then
  errcho "Error! Provide some arguments to the command." 
  exit 1
fi

/usr/games/cowsay "$PREFIX_NAME's friend cow says $@"