Skip to content

Commit

Permalink
chore: make failures red to spot issues
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Jan 8, 2024
1 parent c0b85ef commit df3f6f8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions upgrade-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [ "$1" == "--upgrade-expo" ]; then
(cd $DIRNAME && $manager install --ignore-scripts)
exitCode=$?
echo "::endgroup::"
if [ $exitCode -ne 0 ]; then echo "FAILURE"; fi
if [ $exitCode -ne 0 ]; then echo -e "\033[0;31mFAILURE\033[0m"; fi
fi

if [ -z ${CI} ]; then
Expand All @@ -39,7 +39,7 @@ if [ "$1" == "--upgrade-expo" ]; then
(cd $DIRNAME && $manager add expo@latest && $manager expo install --fix)
exitCode=$?
echo "::endgroup::"
if [ $exitCode -ne 0 ]; then echo "FAILURE"; fi
if [ $exitCode -ne 0 ]; then echo -e "\033[0;31mFAILURE\033[0m"; fi
fi
done

Expand All @@ -55,7 +55,7 @@ if [ "$1" == "--upgrade-expo" ]; then
(cd $DIRNAME && yarn install)
exitCode=$?
echo "::endgroup::"
if [ $exitCode -ne 0 ]; then echo "FAILURE"; fi
if [ $exitCode -ne 0 ]; then echo -e "\033[0;31mFAILURE\033[0m"; fi
fi

if [ -z ${CI} ]; then
Expand All @@ -66,7 +66,7 @@ if [ "$1" == "--upgrade-expo" ]; then
(cd $DIRNAME && yarn add expo@latest && yarn expo install --fix)
exitCode=$?
echo "::endgroup::"
if [ $exitCode -ne 0 ]; then echo "FAILURE"; fi
if [ $exitCode -ne 0 ]; then echo -e "\033[0;31mFAILURE\033[0m"; fi
fi
done

Expand All @@ -93,7 +93,7 @@ if [ "$1" == "--fix-dependencies" ]; then
(cd $DIRNAME && $manager install --ignore-scripts)
exitCode=$?
echo "::endgroup::"
if [ $exitCode -ne 0 ]; then echo "FAILURE"; fi
if [ $exitCode -ne 0 ]; then echo -e "\033[0;31mFAILURE\033[0m"; fi
fi

if [ -z ${CI} ]; then
Expand All @@ -104,7 +104,7 @@ if [ "$1" == "--fix-dependencies" ]; then
(cd $DIRNAME && $manager expo install --fix)
exitCode=$?
echo "::endgroup::"
if [ $exitCode -ne 0 ]; then echo "FAILURE"; fi
if [ $exitCode -ne 0 ]; then echo -e "\033[0;31mFAILURE\033[0m"; fi
fi
done

Expand All @@ -121,7 +121,7 @@ if [ "$1" == "--fix-dependencies" ]; then
(cd $DIRNAME && yarn install)
exitCode=$?
echo "::endgroup::"
if [ $exitCode -ne 0 ]; then echo "FAILURE"; fi
if [ $exitCode -ne 0 ]; then echo -e "\033[0;31mFAILURE\033[0m"; fi
fi

if [ -z ${CI} ]; then
Expand All @@ -132,7 +132,7 @@ if [ "$1" == "--fix-dependencies" ]; then
(cd $DIRNAME && yarn expo install --fix)
exitCode=$?
echo "::endgroup::"
if [ $exitCode -ne 0 ]; then echo "FAILURE"; fi
if [ $exitCode -ne 0 ]; then echo -e "\033[0;31mFAILURE\033[0m"; fi
fi
done

Expand Down

0 comments on commit df3f6f8

Please sign in to comment.