Skip to content

Commit

Permalink
Since verifcation tool is added to install script, conditionally exec…
Browse files Browse the repository at this point in the history
…ute from upgrade script
  • Loading branch information
creas002 committed Jul 30, 2024
1 parent 8c6ea4e commit cd010e0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions ansible/roles/common/files/rn2_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,16 @@ echo "#####################################################"
cd ${HOME}/raspberry-noaa-v2
./install_and_upgrade.sh

echo "#####################################################"
echo "# Execute Verification Tool"
echo "#####################################################"
# Determine if verification tool was in the repo cloned
if [[ -f ${HOME}/raspberry-noaa-v2/scripts/tools/verification_tool/verification.sh ]]; then
${HOME}/raspberry-noaa-v2/scripts/tools/verification_tool/verification.sh quick
# Confirm if install_and_upgrade.sh script code already executed it or not
vFound=$(cat ${HOME}/raspberry-noaa-v2/install_and_upgrade.sh | grep verification.sh | wc -l)
if [[ ${vFOUND} -eq 0 ]]; then
echo "#####################################################"
echo "# Execute Verification Tool"
echo "#####################################################"
${HOME}/raspberry-noaa-v2/scripts/tools/verification_tool/verification.sh quick
fi
else
echo "The installed GitHub REPO has not been updated with the Verification Tool, skipping..."
fi
Expand Down

0 comments on commit cd010e0

Please sign in to comment.