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;