Skip to content

Commit

Permalink
Merge pull request #66 from sokil/release_fix
Browse files Browse the repository at this point in the history
fix auth release
  • Loading branch information
sokil authored Feb 7, 2023
2 parents b9c349a + 0c647ab commit 458f86b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/update_iso_codes_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if [[ -d $TMP_BUILD_DIR/.git ]]; then
else
mkdir -p $TMP_BUILD_DIR
cd $TMP_BUILD_DIR
git clone --depth 50 $PKG_ISOCODES_REPO $TMP_BUILD_DIR
git clone $PKG_ISOCODES_REPO $TMP_BUILD_DIR
if [[ $? != 0 ]]; then
echo -e "[Update] Can not clone repository to \033[0;31m${TMP_BUILD_DIR}\033[0m"
exit 1
Expand All @@ -74,6 +74,12 @@ fi

# print source repo version
VERSION=`git describe --tags`

if [[ $? != 0 ]]; then
echo -e "[Release] Can not detect database version"
exit 1
fi

echo -e "[Update] New source repo version is $VERSION"

# define target database dir
Expand Down

0 comments on commit 458f86b

Please sign in to comment.