Skip to content

Commit 3c18b42

Browse files
committed
fix warning: cp: warning: behavior of -n is non-portable
1 parent 9a54628 commit 3c18b42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/copy-libs.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,24 +435,24 @@ for item; do
435435
rel_f=${f#*$item}
436436
rel_p=${rel_f%/*}
437437
mkdir -p "$out_cpath$rel_p"
438-
cp -n $f "$out_cpath$rel_p/"
438+
cp --update=none $f "$out_cpath$rel_p/"
439439
done
440440
for f in `find "$item" -name '*.hpp'`; do
441441
rel_f=${f#*$item}
442442
rel_p=${rel_f%/*}
443443
mkdir -p "$out_cpath$rel_p"
444-
cp -n $f "$out_cpath$rel_p/"
444+
cp --update=none $f "$out_cpath$rel_p/"
445445
done
446446
for f in `find "$item" -name '*.inc'`; do
447447
rel_f=${f#*$item}
448448
rel_p=${rel_f%/*}
449449
mkdir -p "$out_cpath$rel_p"
450-
cp -n $f "$out_cpath$rel_p/"
450+
cp --update=none $f "$out_cpath$rel_p/"
451451
done
452452
# Temporary measure to fix issues caused by https://github.com/espressif/esp-idf/commit/dc4731101dd567cc74bbe4d0f03afe52b7db9afb#diff-1d2ce0d3989a80830fdf230bcaafb3117f32046d16cf46616ac3d55b4df2a988R17
453453
if [[ "$fname" == "bt" && "$out_sub" == "/include/$IDF_TARGET/include" && -f "$ipath/controller/$IDF_TARGET/esp_bt_cfg.h" ]]; then
454454
mkdir -p "$AR_SDK/include/$fname/controller/$IDF_TARGET"
455-
cp -n "$ipath/controller/$IDF_TARGET/esp_bt_cfg.h" "$AR_SDK/include/$fname/controller/$IDF_TARGET/esp_bt_cfg.h"
455+
cp --update=none "$ipath/controller/$IDF_TARGET/esp_bt_cfg.h" "$AR_SDK/include/$fname/controller/$IDF_TARGET/esp_bt_cfg.h"
456456
fi
457457
fi
458458
done

0 commit comments

Comments
 (0)