Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Initial Uninstaller and MacOS BugFixes #49

Merged
merged 1 commit into from
Nov 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions unixInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ then
fi

echo "Downloading the executable..."
if [ $OSTYPE == *"darwin"* ]
if [ -z "${OSTYPE##*darwin*}" ]
then
curl -L -o ~/bin/packageless https://github.com/everettraven/packageless/releases/latest/download/packageless-macos
else
Expand All @@ -30,5 +30,5 @@ echo "Downloading packageless configuration file"
curl -L -o ~/.packageless/config.hcl https://github.com/everettraven/packageless/releases/latest/download/config.hcl

echo "Adding packageless to PATH by adding to: ~/."$shell"rc"
echo "export PATH=\$PATH:~/bin/" >> $HOME"/."$shell"rc"
echo "export PATH=\$PATH:~/bin" >> $HOME"/."$shell"rc"
echo "For changes to take effect, please restart your terminal"
16 changes: 16 additions & 0 deletions unixuninstaller.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

echo "-------------------------"
echo "- packageless uninstall -"
echo "-------------------------"
echo ""
echo "removing packageless binary"
rm -f ~/bin/packageless

echo "removing .packageless folder"
rm -f -r ~/.packageless

#need to add a section here to clean up the rc file for the shell

echo "removal complete"
echo ""