From bbcf1dabd26bb4e93aa4780d1771c3b449c068ec Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Tue, 28 Mar 2023 11:19:11 -0600 Subject: Revert "tweak: move things around" This reverts commit ca59138a2aef96960381f986b8c683634e4d8e63. --- rose-mklink | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 rose-mklink (limited to 'rose-mklink') diff --git a/rose-mklink b/rose-mklink new file mode 100755 index 0000000..f016aae --- /dev/null +++ b/rose-mklink @@ -0,0 +1,17 @@ +#!/bin/sh + +test "$1" = "--help" || test -z "$1" && { + printf "%s\n" "usage: rose-mklink " \ + "Create a /usr/bin link to a website." + exit +} + +test -z "$2" || { + test -f "/usr/bin/$1" && { + echo "/usr/bin/$1 already exists, remove it first" + exit 1 + } + + printf "#!/bin/sh\n\nrose %s" "$2" > /usr/bin/$1 + chmod +x /usr/bin/$1 +} -- cgit v1.2.3