Skip to content

Commit 2a50ece

Browse files
committed
Fix for not uploading to ftp once done
1 parent b94a790 commit 2a50ece

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

Diff for: distr/1.0/mkrelease.sh

+12-10
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ if [ $? -ne 0 ]; then
210210
echo "Failed to create tarball"
211211
exit 1
212212
fi
213+
echo "Created $rel_name.tgz successfully"
213214

214215
if [ -e libwat-$major.$minor-current.tgz ]; then
215216
eval "rm -rf libwat-$major.$minor-current.tgz"
@@ -224,6 +225,7 @@ if [ $? -ne 0 ]; then
224225
echo "Failed to create tarball"
225226
exit 1
226227
fi
228+
echo "Created libwat-$major.$minor-current.tgz successfully"
227229

228230
tagname="v$major.$minor.$rev.$patch"
229231

@@ -246,18 +248,18 @@ if [ $tag = "y" ]; then
246248
echo "Failed to push new git tag"
247249
exit 1
248250
fi
251+
fi
249252

250-
eval "scp $rel_name.tgz [email protected]:linux/libwat"
251-
if [ $? -ne 0 ]; then
252-
echo "Failed to upload to ftp"
253-
exit 1
254-
fi
253+
eval "scp $rel_name.tgz [email protected]:linux/libwat"
254+
if [ $? -ne 0 ]; then
255+
echo "Failed to upload to ftp"
256+
exit 1
257+
fi
255258

256-
eval "scp libwat-$major.$minor-current.tgz [email protected]:linux/libwat"
257-
if [ $? -ne 0 ]; then
258-
echo "Failed to upload to ftp"
259-
exit 1
260-
fi
259+
eval "scp libwat-$major.$minor-current.tgz [email protected]:linux/libwat"
260+
if [ $? -ne 0 ]; then
261+
echo "Failed to upload to ftp"
262+
exit 1
261263
fi
262264

263265
echo

0 commit comments

Comments
 (0)