Skip to content

Commit ea23919

Browse files
author
ChrisMaunder
committed
mv => mv -f
1 parent bd0b268 commit ea23919

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/SDK/Scripts/install_cuDNN.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#
3030
# - Using signing key
3131
# wget https://developer.download.nvidia.com/compute/cuda/repos/${OS_name}/${arch}/cuda-${OS_name}.pin
32-
# sudo mv cuda-${OS_name}.pin /etc/apt/preferences.d/cuda-repository-pin-600
32+
# sudo mv -f cuda-${OS_name}.pin /etc/apt/preferences.d/cuda-repository-pin-600
3333
# sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/${OS_name}/${arch}/${key}.pub
3434
# sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/${OS_name}/${arch}/ /"
3535
#
@@ -208,12 +208,12 @@ spin $!
208208
writeLine "Done" $color_success
209209

210210
# wget https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<arch>/cuda-archive-keyring.gpg
211-
# sudo mv cuda-archive-keyring.gpg /usr/share/keyrings/cuda-archive-keyring.gpg
211+
# sudo mv -f cuda-archive-keyring.gpg /usr/share/keyrings/cuda-archive-keyring.gpg
212212
#
213213
# echo "deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<arch>/ /" | sudo tee /etc/apt/sources.list.d/cuda-<distro>-<arch>.list
214214
#
215215
# wget https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<arch>/cuda-<distro>.pin
216-
# sudo mv cuda-<distro>.pin /etc/apt/preferences.d/cuda-repository-pin-600
216+
# sudo mv -f cuda-<distro>.pin /etc/apt/preferences.d/cuda-repository-pin-600
217217

218218
# install the cuDNN library
219219
write " - Installing cuDNN libraries..." $color_mute

src/SDK/Scripts/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,7 @@ function getFromServer () {
18481848

18491849
move_recursive() {
18501850
if [ ! -d "$1" ] || [ ! -e "$2" ]; then
1851-
mv "$1" "$2" || exit
1851+
mv -f "$1" "$2" || exit
18521852
return
18531853
fi
18541854
for entry in "$1/"* "$1/."[!.]* "$1/.."?*; do

src/SDK/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fi
136136
if [ "${useJq}" = false ]; then
137137
dotnet build "${sdkPath}/Utilities/ParseJSON" /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary -c Release > /dev/null 2>&1
138138
pushd "${sdkPath}/Utilities/ParseJSON/bin/Release/net7.0/" >/dev/null
139-
mv ./* ../../../
139+
mv -f ./* ../../../
140140
popd >/dev/null
141141
fi
142142

src/modules/LlamaChat/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if [ "$module_install_errors" = "" ]; then
4747
fi
4848

4949
if [ -f "${destination}" ] && [ ! -f "${moduleDirPath}/models/${fileToGet}" ]; then
50-
mv "${destination}" "${moduleDirPath}/models/"
50+
mv -f "${destination}" "${moduleDirPath}/models/"
5151
fi
5252

5353
else

src/modules/ObjectDetectionYOLOv5-6.2/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if [ "$module_install_errors" = "" ] && [ "$systemName" = "Jetson" ]; then
4242
if [ ! -f "${downloadDirPath}/ObjectDetectionYOLOv5-6.2/torch-1.10.0a0+git36449ea-cp36-cp36m-linux_aarch64.whl" ]; then
4343
installPythonPackagesByName "gdown"
4444
gdown https://drive.google.com/uc?id=1TqC6_2cwqiYacjoLhLgrZoap6-sVL2sd
45-
mv torch-1.10.0a0+git36449ea-cp36-cp36m-linux_aarch64.whl "${downloadDirPath}/ObjectDetectionYOLOv5-6.2/"
45+
mv -f torch-1.10.0a0+git36449ea-cp36-cp36m-linux_aarch64.whl "${downloadDirPath}/ObjectDetectionYOLOv5-6.2/"
4646
fi
4747

4848
# install PyTorch 1.10.0

src/modules/ObjectDetectionYOLOv8/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if [ "$module_install_errors" = "" ] && [ "$systemName" = "Jetson" ]; then
115115
wget $torch_location -O "${downloadDirPath}/${os}/packages/${torch_wheel}"
116116
else
117117
gdown $torch_location
118-
mv $torch_wheel "${downloadDirPath}/${os}/packages/"
118+
mv -f $torch_wheel "${downloadDirPath}/${os}/packages/"
119119
fi
120120
fi
121121

@@ -140,7 +140,7 @@ if [ "$module_install_errors" = "" ] && [ "$systemName" = "Jetson" ]; then
140140
mkdir -p "${downloadDirPath}/${os}/packages"
141141
fi
142142
gdown $torchvision_location
143-
mv $torchvision_wheel "${downloadDirPath}/${os}/packages/"
143+
mv -f $torchvision_wheel "${downloadDirPath}/${os}/packages/"
144144
fi
145145

146146
cp "${downloadDirPath}/${os}/packages/${torchvision_wheel}" .

0 commit comments

Comments
 (0)