Skip to content

Commit 5c2fa90

Browse files
committed
.github: Do not fail on existing directories
1 parent 2d8b888 commit 5c2fa90

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/setup-java.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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
1719
export JC_HOME=$PWD/oracle_javacard_sdks/jc222_kit
1820
export 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
2226
pushd jcardsim
2327
env | grep -i openjdk
2428
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/

.github/test-piv.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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
1416
pushd PivApplet
1517
JC_HOME=${JC_CLASSIC_HOME} ant dist
1618
popd
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
2024
pushd yubico-piv-tool
21-
mkdir build
25+
if [ ! -d "build" ]; then
26+
mkdir build
27+
fi
2228
pushd build
2329
cmake .. && make && sudo make install
2430
popd

0 commit comments

Comments
 (0)