summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Scott <scottj@sou.edu>2020-11-22 11:57:11 -0800
committerJake Scott <scottj@sou.edu>2020-11-22 11:57:11 -0800
commite61ba0eeec47e15ce3e757657408b257509ea778 (patch)
treec8ac8440ef7dcd099ac50be91a5adf9772c6d30f
parentd0de57c5f5cebd4d4b3b3901964b65dcf0f6af6a (diff)
added help message
-rw-r--r--help6
-rwxr-xr-xrm2
2 files changed, 7 insertions, 1 deletions
diff --git a/help b/help
new file mode 100644
index 0000000..0a12e7f
--- /dev/null
+++ b/help
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+echo "Available Commands:"
+echo "init <name>: Initialize new Git repository with <name>"
+echo "ls: list all repositories"
+echo "rm <name>: Delete Git repository with <name>" \ No newline at end of file
diff --git a/rm b/rm
index 5eda181..1402bae 100755
--- a/rm
+++ b/rm
@@ -21,7 +21,7 @@ if [ -d "$target" ]; then
read -r confirm
if [ "${confirm,,}" = "y" ]; then
rm -rf "${base_dir:?}/${target:?}" \
- && echo "Deleted Git repository: ${target}"
+ && echo "Deleted Git repository ${target}"
fi
else
echo "$target does not exist."