summaryrefslogtreecommitdiff
path: root/linux/deb/01-fs-hello-kamal/package/usr/bin
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-05-23 14:50:05 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-05-23 14:50:05 +0530
commited1837534a0a9a1ab8f8291cff73be031a5d493b (patch)
treefbfb92615dcbbd250e7529c7afc00066fc72ef13 /linux/deb/01-fs-hello-kamal/package/usr/bin
parentfe8b0606b434bb17f870cf9e6ba473c2ef39ca1f (diff)
Dir rename
Diffstat (limited to 'linux/deb/01-fs-hello-kamal/package/usr/bin')
-rwxr-xr-xlinux/deb/01-fs-hello-kamal/package/usr/bin/fs-hello-kamal16
1 files changed, 16 insertions, 0 deletions
diff --git a/linux/deb/01-fs-hello-kamal/package/usr/bin/fs-hello-kamal b/linux/deb/01-fs-hello-kamal/package/usr/bin/fs-hello-kamal
new file mode 100755
index 0000000..b8c827c
--- /dev/null
+++ b/linux/deb/01-fs-hello-kamal/package/usr/bin/fs-hello-kamal
@@ -0,0 +1,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 $@"