We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9c349a + 0c647ab commit 458f86bCopy full SHA for 458f86b
bin/update_iso_codes_db.sh
@@ -65,7 +65,7 @@ if [[ -d $TMP_BUILD_DIR/.git ]]; then
65
else
66
mkdir -p $TMP_BUILD_DIR
67
cd $TMP_BUILD_DIR
68
- git clone --depth 50 $PKG_ISOCODES_REPO $TMP_BUILD_DIR
+ git clone $PKG_ISOCODES_REPO $TMP_BUILD_DIR
69
if [[ $? != 0 ]]; then
70
echo -e "[Update] Can not clone repository to \033[0;31m${TMP_BUILD_DIR}\033[0m"
71
exit 1
@@ -74,6 +74,12 @@ fi
74
75
# print source repo version
76
VERSION=`git describe --tags`
77
+
78
+if [[ $? != 0 ]]; then
79
+ echo -e "[Release] Can not detect database version"
80
+ exit 1
81
+fi
82
83
echo -e "[Update] New source repo version is $VERSION"
84
85
# define target database dir
0 commit comments