mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Add -f
This commit is contained in:
parent
473dd86f48
commit
7862182d6f
2
nvm.sh
2
nvm.sh
@ -262,7 +262,7 @@ nvm() {
|
|||||||
curl -L -C - --progress-bar $url -o "$tmptarball" && \
|
curl -L -C - --progress-bar $url -o "$tmptarball" && \
|
||||||
nvm_checksum `${shasum} "$tmptarball" | awk '{print $1}'` $sum && \
|
nvm_checksum `${shasum} "$tmptarball" | awk '{print $1}'` $sum && \
|
||||||
tar -xzf "$tmptarball" -C "$tmpdir" --strip-components 1 && \
|
tar -xzf "$tmptarball" -C "$tmpdir" --strip-components 1 && \
|
||||||
rm "$tmptarball" && \
|
rm -f "$tmptarball" && \
|
||||||
mv "$tmpdir" "$NVM_DIR/$VERSION"
|
mv "$tmpdir" "$NVM_DIR/$VERSION"
|
||||||
)
|
)
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user