Browse Source

add git pull to get_pages script

Jonas Reinsch 7 năm trước cách đây
mục cha
commit
5899c603b0
1 tập tin đã thay đổi với 16 bổ sung0 xóa
  1. 16 0
      get_libraries.sh

+ 16 - 0
get_libraries.sh

@@ -8,6 +8,22 @@ if [[ ! -d "${base}" ]]; then
     exit 1
 fi
 
+cd "${base}"
+
+if [[ $? -ne 0 ]]; then
+    echo Error: could not change to deltachat-core directory
+    exit 1
+fi
+
+git pull
+
+if [[ $? -ne 0 ]]; then
+    echo Error: pulling deltachat-core repository failed
+    exit 1
+fi
+
+cd -
+
 rm -rf "${dst}"/deltachat-core
 mkdir -p "${dst}"
 cp -r "${base}" "$dst"