summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2009-01-10 00:11:59 +1000
committerAllan McRae <allan@archlinux.org>2009-01-10 00:11:59 +1000
commit1b178621a5fc1ec088c27fd419458d93d80aeb0f (patch)
treeb5bf1710351f19dddd23130fb7812bbb4183b929
parentaa39a8a11f8003bdd5da4927477eac8b234b188d (diff)
downloaddevtools-1b178621a5fc1ec088c27fd419458d93d80aeb0f.tar.xz
Specify upload server in variable
This means people with different usernames on their local machine only need to change a single line. Original-patch-by: Vesa Kaihlavirta <vesa@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
-rwxr-xr-xextrapkg5
1 files changed, 3 insertions, 2 deletions
diff --git a/extrapkg b/extrapkg
index 0447589..161c998 100755
--- a/extrapkg
+++ b/extrapkg
@@ -65,8 +65,9 @@ fi
if [ "$repo" != "community" ]; then
# combine what we know into a variable
uploadto="staging/${repo}/$(basename ${pkgfile})"
- scp ${scpopts} "${pkgfile}" "archlinux.org:${uploadto}"
- if [ "$(md5sum "${pkgfile}" | cut -d' ' -f1)" != "$(ssh archlinux.org md5sum "${uploadto}" | cut -d' ' -f1)" ]; then
+ server="archlinux.org"
+ scp ${scpopts} "${pkgfile}" "${server}:${uploadto}"
+ if [ "$(md5sum "${pkgfile}" | cut -d' ' -f1)" != "$(ssh ${server} md5sum "${uploadto}" | cut -d' ' -f1)" ]; then
echo "File got corrupted during upload, cancelled."
exit 1
else