We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e02b950 commit 5bb20c0Copy full SHA for 5bb20c0
build-tools/cache_samples.sh
@@ -99,8 +99,24 @@ function cache_devfile() {
99
fi
100
}
101
102
-devfileEntriesFile=$1
103
-samplesDir=$2
+if [[ "$OSTYPE" == "darwin" ]]
+then
104
+ if [[ $1 != ./* ]] && [[ $1 != ../* ]] && [[ $1 != /* ]]
105
+ then
106
+ devfileEntriesFile=./$1
107
+ else
108
+ devfileEntriesFile=$1
109
+ fi
110
+ if [[ $2 != ./* ]] && [[ $2 != ../* ]] && [[ $2 != /* ]]
111
112
+ samplesDir=./$2
113
114
+ samplesDir=$2
115
116
+else
117
118
119
+fi
120
121
for sample in $(yq e '(.samples[].name)' $devfileEntriesFile); do
122
mkdir -p $samplesDir/$sample
0 commit comments