File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,16 @@ env | grep -i openjdk
1313./.github/setup-vsmartcard.sh
1414
1515# Javacard SDKs
16- git clone https://github.com/martinpaljak/oracle_javacard_sdks.git
16+ if [ ! -d " oracle_javacard_sdks" ]; then
17+ git clone https://github.com/martinpaljak/oracle_javacard_sdks.git
18+ fi
1719export JC_HOME=$PWD /oracle_javacard_sdks/jc222_kit
1820export JC_CLASSIC_HOME=$PWD /oracle_javacard_sdks/jc305u3_kit
1921
2022# jCardSim
21- git clone https://github.com/arekinath/jcardsim.git
23+ if [ ! -d " jcardsim" ]; then
24+ git clone https://github.com/arekinath/jcardsim.git
25+ fi
2226pushd jcardsim
2327env | grep -i openjdk
2428export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
Original file line number Diff line number Diff line change @@ -10,15 +10,21 @@ export LD_LIBRARY_PATH=/usr/local/lib
1010. .github/setup-java.sh
1111
1212# The PIV Applet
13- git clone --recursive https://github.com/arekinath/PivApplet.git
13+ if [ ! -d " PivApplet" ]; then
14+ git clone --recursive https://github.com/arekinath/PivApplet.git
15+ fi
1416pushd PivApplet
1517JC_HOME=${JC_CLASSIC_HOME} ant dist
1618popd
1719
1820# yubico-piv-tool is needed for PIV Applet management
19- git clone https://github.com/Yubico/yubico-piv-tool.git
21+ if [ ! -d " yubico-piv-tool" ]; then
22+ git clone https://github.com/Yubico/yubico-piv-tool.git
23+ fi
2024pushd yubico-piv-tool
21- mkdir build
25+ if [ ! -d " build" ]; then
26+ mkdir build
27+ fi
2228pushd build
2329cmake .. && make && sudo make install
2430popd
You can’t perform that action at this time.
0 commit comments