Skip to content

Commit ad9186d

Browse files
committed
Use 'yes' when unzipping files
1 parent f65825a commit ad9186d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tensorflow-core/tensorflow-core-native/scripts/dist_download.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ if [[ -n "$WHEEL_URL" ]]; then
3333
if [ ! -f 'tensorflow.whl' ]; then
3434
curl -L $WHEEL_URL --output 'tensorflow.whl'
3535
fi
36-
unzip -q -u 'tensorflow.whl'
36+
yes | unzip -q -u 'tensorflow.whl' # use 'yes' because for some reasons -u does not work on Windows
3737
fi
3838

3939
if [[ -n "$CLIB_URL" ]]; then
4040
echo "Downloading $CLIB_URL"
4141
if [ ! -f 'tensorflow_c.zip' ]; then
4242
curl -L $CLIB_URL --output 'tensorflow_c.zip'
4343
fi
44-
unzip -q -u -d tensorflow 'tensorflow_c.zip'
44+
yes | unzip -q -u -d tensorflow 'tensorflow_c.zip'
4545
fi
4646

4747
cd tensorflow

0 commit comments

Comments
 (0)