Skip to content

Commit e7e99d2

Browse files
committed
[skip ci] General fixes at 20:24 of 2018-12-15
1 parent c89935e commit e7e99d2

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

share/po-linux

+14-14
Original file line numberDiff line numberDiff line change
@@ -319,23 +319,23 @@ _update()
319319
KERNEL="$(uname -s)"
320320
curl -sS "https://po-util-tracker.herokuapp.com/update/$USER/$HOSTNAME@$KERNEL/$SYSTEM_IP" &> /dev/null &
321321

322-
if [ "$1" == "duo" ]; then # Update just duo firmware
322+
if [ "$1" == "particle" ]; then # update just particle firmware
323323
echo
324-
blue_echo "Updating RedBear DUO firmware.."
325-
cd "$FIRMWARE_DUO/firmware" || exit
324+
blue_echo "Updating Particle firmware..."
325+
cd "$FIRMWARE_PARTICLE/firmware" || exit
326326
git stash &> /dev/null
327-
switch_branch "$BRANCH_DUO" &> /dev/null
327+
switch_branch &> /dev/null
328328
git fetch
329329
echo
330330
exit
331331
fi
332332

333-
if [ "$1" == "firmware" ]; then # update just particle firmware
333+
if [ "$1" == "duo" ]; then # Update just duo firmware
334334
echo
335-
blue_echo "Updating Particle firmware..."
336-
cd "$FIRMWARE_PARTICLE/firmware" || exit
335+
blue_echo "Updating RedBear DUO firmware.."
336+
cd "$FIRMWARE_DUO/firmware" || exit
337337
git stash &> /dev/null
338-
switch_branch &> /dev/null
338+
switch_branch "$BRANCH_DUO" &> /dev/null
339339
git fetch
340340
echo
341341
exit
@@ -354,17 +354,17 @@ _update()
354354

355355
# update everything if not specified
356356
echo
357-
blue_echo "Updating RedBear DUO firmware..."
358-
cd "$FIRMWARE_DUO/firmware" || exit
357+
blue_echo "Updating Particle firmware..."
358+
cd "$FIRMWARE_PARTICLE/firmware" || exit
359359
git stash &> /dev/null
360-
switch_branch "$BRANCH_DUO" &> /dev/null
360+
switch_branch &> /dev/null
361361
git fetch
362362

363363
echo
364-
blue_echo "Updating Particle firmware..."
365-
cd "$FIRMWARE_PARTICLE/firmware" || exit
364+
blue_echo "Updating RedBear DUO firmware..."
365+
cd "$FIRMWARE_DUO/firmware" || exit
366366
git stash &> /dev/null
367-
switch_branch &> /dev/null
367+
switch_branch "$BRANCH_DUO" &> /dev/null
368368
git fetch
369369

370370
echo

share/po-mac

+14-14
Original file line numberDiff line numberDiff line change
@@ -170,23 +170,23 @@ _update()
170170
KERNEL="$(uname -s)"
171171
curl -sS "https://po-util-tracker.herokuapp.com/update/$USER/$HOSTNAME@$KERNEL/$SYSTEM_IP" &> /dev/null &
172172

173-
if [ "$1" == "duo" ]; then # Update just duo firmware
173+
if [ "$1" == "particle" ]; then # update just particle firmware
174174
echo
175-
blue_echo "Updating RedBear DUO firmware.."
176-
cd "$FIRMWARE_DUO/firmware" || exit
175+
blue_echo "Updating Particle firmware..."
176+
cd "$FIRMWARE_PARTICLE/firmware" || exit
177177
git stash &> /dev/null
178-
switch_branch "$BRANCH_DUO" &> /dev/null
178+
switch_branch &> /dev/null
179179
git fetch
180180
echo
181181
exit
182182
fi
183183

184-
if [ "$1" == "firmware" ]; then # update just particle firmware
184+
if [ "$1" == "duo" ]; then # Update just duo firmware
185185
echo
186-
blue_echo "Updating Particle firmware..."
187-
cd "$FIRMWARE_PARTICLE/firmware" || exit
186+
blue_echo "Updating RedBear DUO firmware.."
187+
cd "$FIRMWARE_DUO/firmware" || exit
188188
git stash &> /dev/null
189-
switch_branch &> /dev/null
189+
switch_branch "$BRANCH_DUO" &> /dev/null
190190
git fetch
191191
echo
192192
exit
@@ -205,17 +205,17 @@ _update()
205205

206206
#update everything if not specified
207207
echo
208-
blue_echo "Updating RedBear DUO firmware..."
209-
cd "$FIRMWARE_DUO/firmware" || exit
208+
blue_echo "Updating Particle firmware..."
209+
cd "$FIRMWARE_PARTICLE/firmware" || exit
210210
git stash &> /dev/null
211-
switch_branch "$BRANCH_DUO" &> /dev/null
211+
switch_branch &> /dev/null
212212
git fetch
213213

214214
echo
215-
blue_echo "Updating Particle firmware..."
216-
cd "$FIRMWARE_PARTICLE/firmware" || exit
215+
blue_echo "Updating RedBear DUO firmware..."
216+
cd "$FIRMWARE_DUO/firmware" || exit
217217
git stash &> /dev/null
218-
switch_branch &> /dev/null
218+
switch_branch "$BRANCH_DUO" &> /dev/null
219219
git fetch
220220

221221
echo

0 commit comments

Comments
 (0)