Skip to content

Commit 7dd934c

Browse files
committed
Fix warning regarding find options
The previous options work fine, but cause the warning: find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
1 parent 9842a13 commit 7dd934c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino-ci-script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ function install_package() {
488488
extract ./*.*
489489
490490
# Delete all files from the temporary folder
491-
find ./ -type f -maxdepth 1 -delete
491+
find ./ -maxdepth 1 -type f -delete
492492
493493
# Install the package
494494
mv $ARDUINO_CI_SCRIPT_VERBOSITY_OPTION ./* "${ARDUINO_CI_SCRIPT_SKETCHBOOK_FOLDER}/hardware/"
@@ -629,7 +629,7 @@ function install_library() {
629629
extract ./*.*
630630
631631
# Delete all files from the temporary folder
632-
find ./ -type f -maxdepth 1 -delete
632+
find ./ -maxdepth 1 -type f -delete
633633
634634
# Install the library
635635
mv $ARDUINO_CI_SCRIPT_VERBOSITY_OPTION ./* "${ARDUINO_CI_SCRIPT_SKETCHBOOK_FOLDER}/libraries/${newFolderName}"

0 commit comments

Comments
 (0)