Skip to content

Commit

Permalink
Update eclipse-mac
Browse files Browse the repository at this point in the history
move quiet
  • Loading branch information
madhephaestus committed Sep 11, 2023
1 parent 4279f96 commit d46d0dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eclipse-mac
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ECLIPSE_LOC=~/bin/eclipse/
export SLOBER_LOC=$ECLIPSE_LOC

ZIP=Eclipse-Macos.zip
USERINZIP=kharrington
if [[ $(uname -m) == 'arm64' ]]; then
echo "M1 Mac detected "
ZIP=Eclipse-mac-AArch64.zip
Expand All @@ -28,13 +29,13 @@ if (! test -e $ECLIPSE_LOC) then
curl -L https://github.com/CommonWealthRobotics/ESP32ArduinoEclipseInstaller/releases/download/0.0.0/$ZIP -o ~/bin/$ZIP
fi
echo "$ECLIPSE_LOC not found, unzipping Eclipse... "
unzip ~/bin/$ZIP -qq -d $SLOBER_LOC
unzip -qq ~/bin/$ZIP -d $SLOBER_LOC
echo "unzipping Eclipse... Complete! "


fi

cd $SLOBER_LOC; grep -RiIl 'kharrington' .| xargs sed -i '' -e "s/kharrington/$USER/g"
cd $SLOBER_LOC; grep -RiIl "$USERINZIP" .| xargs sed -i '' -e "s/$USERINZIP/$USER/g"

echo "Parameters are $@"
#Run SLoeber
Expand Down

0 comments on commit d46d0dc

Please sign in to comment.