瀏覽代碼

reposinit script bugfix

master
Dirk Alders 2 年之前
父節點
當前提交
499ca5d6d0
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7
    3
      reposinit

+ 7
- 3
reposinit 查看文件

@@ -1,5 +1,9 @@
1
-#!/bin/sh
1
+#!/bin/bash
2 2
 #
3
+echo "* Initialising Submodules"
4
+git submodule init
5
+git submodule update
6
+
3 7
 echo "* Intialising Submodules"
4 8
 mkvenv
5 9
 
@@ -8,8 +12,8 @@ for path in `find pylibs/ -maxdepth 1 -type d`; do
8 12
 	if [[ $path != "pylibs/" ]];then
9 13
 		lib=${path#*/}
10 14
 		echo Creating symbolic link for library $lib
11
-		rm -f venv/lib/python3.9/site-packages/$lib
12
-		ln -s ../../../../$path venv/lib/python3.9/site-packages/
15
+		rm -f venv/lib/python*/site-packages/$lib
16
+		ln -s ../../../../$path venv/lib/python*/site-packages/
13 17
 	fi
14 18
 done
15 19
 

Loading…
取消
儲存