Skip to content

Commit

Permalink
[skip ci] General fixes at 20:24 of 2018-12-15
Browse files Browse the repository at this point in the history
  • Loading branch information
nrobinson2000 committed Dec 16, 2018
1 parent c89935e commit e7e99d2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
28 changes: 14 additions & 14 deletions share/po-linux
Original file line number Diff line number Diff line change
Expand Up @@ -319,23 +319,23 @@ _update()
KERNEL="$(uname -s)"
curl -sS "https://po-util-tracker.herokuapp.com/update/$USER/$HOSTNAME@$KERNEL/$SYSTEM_IP" &> /dev/null &

if [ "$1" == "duo" ]; then # Update just duo firmware
if [ "$1" == "particle" ]; then # update just particle firmware
echo
blue_echo "Updating RedBear DUO firmware.."
cd "$FIRMWARE_DUO/firmware" || exit
blue_echo "Updating Particle firmware..."
cd "$FIRMWARE_PARTICLE/firmware" || exit
git stash &> /dev/null
switch_branch "$BRANCH_DUO" &> /dev/null
switch_branch &> /dev/null
git fetch
echo
exit
fi

if [ "$1" == "firmware" ]; then # update just particle firmware
if [ "$1" == "duo" ]; then # Update just duo firmware
echo
blue_echo "Updating Particle firmware..."
cd "$FIRMWARE_PARTICLE/firmware" || exit
blue_echo "Updating RedBear DUO firmware.."
cd "$FIRMWARE_DUO/firmware" || exit
git stash &> /dev/null
switch_branch &> /dev/null
switch_branch "$BRANCH_DUO" &> /dev/null
git fetch
echo
exit
Expand All @@ -354,17 +354,17 @@ _update()

# update everything if not specified
echo
blue_echo "Updating RedBear DUO firmware..."
cd "$FIRMWARE_DUO/firmware" || exit
blue_echo "Updating Particle firmware..."
cd "$FIRMWARE_PARTICLE/firmware" || exit
git stash &> /dev/null
switch_branch "$BRANCH_DUO" &> /dev/null
switch_branch &> /dev/null
git fetch

echo
blue_echo "Updating Particle firmware..."
cd "$FIRMWARE_PARTICLE/firmware" || exit
blue_echo "Updating RedBear DUO firmware..."
cd "$FIRMWARE_DUO/firmware" || exit
git stash &> /dev/null
switch_branch &> /dev/null
switch_branch "$BRANCH_DUO" &> /dev/null
git fetch

echo
Expand Down
28 changes: 14 additions & 14 deletions share/po-mac
Original file line number Diff line number Diff line change
Expand Up @@ -170,23 +170,23 @@ _update()
KERNEL="$(uname -s)"
curl -sS "https://po-util-tracker.herokuapp.com/update/$USER/$HOSTNAME@$KERNEL/$SYSTEM_IP" &> /dev/null &

if [ "$1" == "duo" ]; then # Update just duo firmware
if [ "$1" == "particle" ]; then # update just particle firmware
echo
blue_echo "Updating RedBear DUO firmware.."
cd "$FIRMWARE_DUO/firmware" || exit
blue_echo "Updating Particle firmware..."
cd "$FIRMWARE_PARTICLE/firmware" || exit
git stash &> /dev/null
switch_branch "$BRANCH_DUO" &> /dev/null
switch_branch &> /dev/null
git fetch
echo
exit
fi

if [ "$1" == "firmware" ]; then # update just particle firmware
if [ "$1" == "duo" ]; then # Update just duo firmware
echo
blue_echo "Updating Particle firmware..."
cd "$FIRMWARE_PARTICLE/firmware" || exit
blue_echo "Updating RedBear DUO firmware.."
cd "$FIRMWARE_DUO/firmware" || exit
git stash &> /dev/null
switch_branch &> /dev/null
switch_branch "$BRANCH_DUO" &> /dev/null
git fetch
echo
exit
Expand All @@ -205,17 +205,17 @@ _update()

#update everything if not specified
echo
blue_echo "Updating RedBear DUO firmware..."
cd "$FIRMWARE_DUO/firmware" || exit
blue_echo "Updating Particle firmware..."
cd "$FIRMWARE_PARTICLE/firmware" || exit
git stash &> /dev/null
switch_branch "$BRANCH_DUO" &> /dev/null
switch_branch &> /dev/null
git fetch

echo
blue_echo "Updating Particle firmware..."
cd "$FIRMWARE_PARTICLE/firmware" || exit
blue_echo "Updating RedBear DUO firmware..."
cd "$FIRMWARE_DUO/firmware" || exit
git stash &> /dev/null
switch_branch &> /dev/null
switch_branch "$BRANCH_DUO" &> /dev/null
git fetch

echo
Expand Down

0 comments on commit e7e99d2

Please sign in to comment.