mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 14:45:52 +08:00
create symlink properly
This commit is contained in:
parent
4e40de6307
commit
2d9580edb4
@ -22,9 +22,10 @@ fi
|
|||||||
if [ -s $KEY ]; then
|
if [ -s $KEY ]; then
|
||||||
for i in $FILES; do
|
for i in $FILES; do
|
||||||
filepath=$(readlink -f "$i")
|
filepath=$(readlink -f "$i")
|
||||||
|
filepath=$(basename $filepath)
|
||||||
tmpfile=$(mktemp)
|
tmpfile=$(mktemp)
|
||||||
echo "rm -f slic3r-${current_branch}-latest.${EXT}" > $tmpfile
|
echo "rm Slic3r-${current_branch}-latest.${EXT}" > $tmpfile
|
||||||
echo "symlink slic3r-${current_branch}-latest.${EXT} $filepath" >> $tmpfile
|
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