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

Commit

Permalink
Merge pull request #49 from Rev-G/mac_installer_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
everettraven authored Nov 15, 2021
2 parents a4129d1 + dfcf7c2 commit de8f8a2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
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 ""

0 comments on commit de8f8a2

Please sign in to comment.