Skip to content

Commit

Permalink
Just ln instead of cp
Browse files Browse the repository at this point in the history
  • Loading branch information
pguyot authored Aug 10, 2023
1 parent cba80ff commit 776e689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions download_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ mkdir -p ${tempdir}
cd ${tempdir}
case ${url} in
file://localhost/*)
cp "${url#file://localhost}" .
ln -s "${url#file://localhost}" .
;;
file:///*)
cp "${url#file://}" .
ln -s "${url#file://}" .
;;
https:/*|http:/*)
wget --trust-server-names --content-disposition -q ${url}
Expand Down

0 comments on commit 776e689

Please sign in to comment.