From 93653d8680cd039353f8312362b1eff2d9ea48e5 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 7 Dec 2016 12:22:49 +0100 Subject: [PATCH] added `install.sh` + `uninstall.sh` --- exporter/Builder.php | 0 exporter/Exporter.php | 0 exporter/main.php | 2 +- exporter/packages.json | 0 install.sh | 16 ++++++++++++++++ uninstall.sh | 13 +++++++++++++ 6 files changed, 30 insertions(+), 1 deletion(-) mode change 100644 => 100755 exporter/Builder.php mode change 100644 => 100755 exporter/Exporter.php mode change 100644 => 100755 exporter/main.php mode change 100644 => 100755 exporter/packages.json create mode 100755 install.sh create mode 100755 uninstall.sh diff --git a/exporter/Builder.php b/exporter/Builder.php old mode 100644 new mode 100755 diff --git a/exporter/Exporter.php b/exporter/Exporter.php old mode 100644 new mode 100755 diff --git a/exporter/main.php b/exporter/main.php old mode 100644 new mode 100755 index 930c8fd..4b48982 --- a/exporter/main.php +++ b/exporter/main.php @@ -1,6 +1,6 @@ $dst && echo "(2) changing permissions" && chmod +x $dst && echo "\n* The command \`xfw\` can now be used from everywhere" || ( echo "* aborting - removing file" && rm $dst ); +else + echo "* aborting"; +fi; diff --git a/uninstall.sh b/uninstall.sh new file mode 100755 index 0000000..03ab4cc --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +dst="/usr/local/bin/xfw"; + +echo "Remove the symlink to $dst ? (y,n)"; +read removelink; +echo "\n"; + +if [ "$removelink" = "y" ]; then + rm $dst && echo "* The command \`xfw\` is no more accessible." || echo "* aborting"; +else + echo "* aborting"; +fi;