mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-11 17:08:59 +08:00
Don't abort if no symlink exists.
This commit is contained in:
parent
976bb5518e
commit
eb2a1a6dce
@ -24,8 +24,9 @@ if [ -s $KEY ]; then
|
|||||||
filepath=$(readlink -f "$i")
|
filepath=$(readlink -f "$i")
|
||||||
filepath=$(basename $filepath)
|
filepath=$(basename $filepath)
|
||||||
tmpfile=$(mktemp)
|
tmpfile=$(mktemp)
|
||||||
echo "rm Slic3r-${current_branch}-latest.${EXT}" > $tmpfile
|
|
||||||
echo "symlink $filepath Slic3r-${current_branch}-latest.${EXT} " >> $tmpfile
|
echo "rm Slic3r-${current_branch}-latest.${EXT}" | sftp -i$KEY "${UPLOAD_USER}@dl.slic3r.org:$DIR/"
|
||||||
|
echo "symlink $filepath Slic3r-${current_branch}-latest.${EXT} " > $tmpfile
|
||||||
sftp -b $tmpfile -i$KEY "${UPLOAD_USER}@dl.slic3r.org:$DIR/"
|
sftp -b $tmpfile -i$KEY "${UPLOAD_USER}@dl.slic3r.org:$DIR/"
|
||||||
result=$?
|
result=$?
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user