From 00b64b6ee5f5849b9dedcb17140eab7b9202fc19 Mon Sep 17 00:00:00 2001 From: bellrise Date: Sat, 19 Nov 2022 14:37:13 +0100 Subject: nativefier: Rename to rose-mklink so its easier to grasp Added a slightly more telling helppage, add added chmod +x /usr/bin/x so the link may actually be called. --- README.md | 2 +- install.sh | 2 +- rose | Bin 38760 -> 0 bytes rose-mklink | 16 ++++++++++++++++ rose-nativefier | 9 --------- 5 files changed, 18 insertions(+), 11 deletions(-) delete mode 100755 rose create mode 100755 rose-mklink delete mode 100755 rose-nativefier diff --git a/README.md b/README.md index 454067a..bf0bb60 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ - ~400L code base - custom gtk and websites css - hackable without any knowledge - - builtin script nativefier + - builtin rose-mklink script for in-shell static links # ### 👐 Contribute diff --git a/install.sh b/install.sh index ffed296..884f6f2 100755 --- a/install.sh +++ b/install.sh @@ -2,5 +2,5 @@ cp -f rose /usr/bin mkdir -p /usr/share/themes/rose cp style.css /usr/share/themes/rose/ - cp rose-nativefier /usr/bin + cp rose-mklink /usr/bin } diff --git a/rose b/rose deleted file mode 100755 index 3dde429..0000000 Binary files a/rose and /dev/null differ diff --git a/rose-mklink b/rose-mklink new file mode 100755 index 0000000..eb878cf --- /dev/null +++ b/rose-mklink @@ -0,0 +1,16 @@ +#!/bin/sh + +if [ "$1" = "--help" ] || [ -z "$1" ]; then + echo -e "usage: rose-mklink \n" + echo "Create a /usr/bin link to a website." +fi + +test -z "$1" || test -z "$2" || { + [ -f "/usr/bin/$1" ] && { + echo "/usr/bin/$1 already exists, remove it first" + exit 1 + } + + echo -e "#!/bin/sh\n\nrose $2" > /usr/bin/$1 + chmod +x /usr/bin/$1 +} diff --git a/rose-nativefier b/rose-nativefier deleted file mode 100755 index cc15fe4..0000000 --- a/rose-nativefier +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -test "$1" = "--help" && { - echo "usage: rose-nativefier " -} - -test -z "$1" || test -z "$2" || { - echo -e "#!/bin/sh\n\nrose $2" > /usr/bin/$1 -} -- cgit v1.2.3