Skip to content

Commit 1e670ad

Browse files
authored
Update copy-libs.sh
1 parent 3f27825 commit 1e670ad

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

tools/copy-libs.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,20 @@ fi
3636
if [ -e "$AR_SDK/$MEMCONF" ]; then
3737
rm -rf "$AR_SDK/$MEMCONF"
3838
fi
39-
if [ -e "$AR_SDK/platformio-build.py" ]; then
40-
rm -rf "$AR_SDK/platformio-build.py"
39+
if [ -e "$AR_SDK/pioarduino-build.py" ]; then
40+
rm -rf "$AR_SDK/pioarduino-build.py"
4141
fi
4242

4343
mkdir -p "$AR_SDK"
4444
mkdir -p "$AR_SDK/lib"
4545

4646
function get_actual_path(){
47-
p="$PWD"; cd "$1"; r="$PWD"; cd "$p"; echo "$r";
47+
d="$1";
48+
if [ -d "$d" ]; then
49+
p="$PWD"; cd "$d"; r="$PWD"; cd "$p"; echo "$r";
50+
else
51+
echo "";
52+
fi
4853
}
4954

5055
#
@@ -313,8 +318,8 @@ done
313318

314319
mkdir -p "$AR_SDK"
315320

316-
# start generation of platformio-build.py
317-
AR_PLATFORMIO_PY="$AR_SDK/platformio-build.py"
321+
# start generation of pioarduino-build.py
322+
AR_PLATFORMIO_PY="$AR_SDK/pioarduino-build.py"
318323
cat configs/pio_start.txt > "$AR_PLATFORMIO_PY"
319324

320325
echo " ASFLAGS=[" >> "$AR_PLATFORMIO_PY"

0 commit comments

Comments
 (0)