Skip to content

Commit

Permalink
Added uinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
KrosFire committed Dec 21, 2024
1 parent 7c21d55 commit d7321ee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ install-path = "CARGO_HOME"
# Whether to install an updater program
install-updater = true
# Extra static files to include in each App (path relative to this Cargo.toml's dir)
include = ["std", "assets"]
include = ["std", "assets", "uninstall.sh"]
# Success installation message
custom-success-msg = "Amber has been installed successfully. 🎉\n> Now you can use amber by typing `amber` in your terminal."
14 changes: 14 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
amber_path="./link.sh"

if [ -z "$amber_path" ]; then
echo "Amber is not in \$PATH."
exit 1
fi

amber_installation_dir=$(dirname "$(readlink -f "$amber_path")")

echo "Uninstalling Amber..."
rm -rf $amber_path
rm -rf $amber_installation_dir
echo "Amber uninstalled. See you later, 🐊"

0 comments on commit d7321ee

Please sign in to comment.