Skip to content

Commit 458f86b

Browse files
authored
Merge pull request #66 from sokil/release_fix
fix auth release
2 parents b9c349a + 0c647ab commit 458f86b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/update_iso_codes_db.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ if [[ -d $TMP_BUILD_DIR/.git ]]; then
6565
else
6666
mkdir -p $TMP_BUILD_DIR
6767
cd $TMP_BUILD_DIR
68-
git clone --depth 50 $PKG_ISOCODES_REPO $TMP_BUILD_DIR
68+
git clone $PKG_ISOCODES_REPO $TMP_BUILD_DIR
6969
if [[ $? != 0 ]]; then
7070
echo -e "[Update] Can not clone repository to \033[0;31m${TMP_BUILD_DIR}\033[0m"
7171
exit 1
@@ -74,6 +74,12 @@ fi
7474

7575
# print source repo version
7676
VERSION=`git describe --tags`
77+
78+
if [[ $? != 0 ]]; then
79+
echo -e "[Release] Can not detect database version"
80+
exit 1
81+
fi
82+
7783
echo -e "[Update] New source repo version is $VERSION"
7884

7985
# define target database dir

0 commit comments

Comments
 (0)