Browse Source

fix wording slightly, say when the file changes (as a warning)..

main
John-Mark Gurney 2 years ago
parent
commit
0fdb406890
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      stm32/update.sh

+ 5
- 2
stm32/update.sh View File

@@ -5,8 +5,8 @@ COD=$1
if [ ! -d "$COD" ]; then
echo "usage: $0 <checkoutdir>"
echo ""
echo "checkoutdir is the directory where the STM32CubeXX files are"
echo "checked out."
echo "checkoutdir is the directory where the STM32CubeXX git repos"
echo "are."
exit 1
fi

@@ -19,6 +19,9 @@ while read lclfn cube cubefn; do
err=1
continue
fi
if ! cmp -s "$cubefile" "$lclfn"; then
echo "updating $lclfn"
fi
cp "$cubefile" "$lclfn"
git add "$lclfn"
done << EOF


Loading…
Cancel
Save