diff options
author | Thomas Bächler <thomas@archlinux.org> | 2007-10-03 21:45:28 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2007-10-03 21:45:28 +0200 |
commit | 0ccd823361492bdd2714a4b80b27212faaebbf1e (patch) | |
tree | 6966800a52f677fa6b953cf8655d842975de5740 /extrapkg | |
parent | c42e37bd602263065c3b7b4344310f4f29661cd4 (diff) | |
download | devtools-0ccd823361492bdd2714a4b80b27212faaebbf1e.tar.gz devtools-0ccd823361492bdd2714a4b80b27212faaebbf1e.tar.xz |
fixed integrity check when using PKGDEST
fixed tab/space indentation
Diffstat (limited to 'extrapkg')
-rwxr-xr-x | extrapkg | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -52,13 +52,13 @@ if [ "$1" = "-l" ]; then fi if [ "$repo" != "community" ]; then - scp $scpopts $pkgfile archlinux.org:staging/$repo/add - if [ "$(md5sum $pkgfile | cut -d' ' -f1)" != "$(ssh archlinux.org md5sum staging/${repo}/add/$pkgfile | cut -d' ' -f1)" ]; then - echo "File got corrupted during upload, cancelled." - exit 1 - else - echo "File integrity okay." - fi + scp ${scpopts} ${pkgfile} archlinux.org:staging/$repo/add + if [ "$(md5sum ${pkgfile} | cut -d' ' -f1)" != "$(ssh archlinux.org md5sum staging/${repo}/add/$(basename ${pkgfile}) | cut -d' ' -f1)" ]; then + echo "File got corrupted during upload, cancelled." + exit 1 + else + echo "File integrity okay." + fi else if [ ! -f ~/.tupkg ]; then echo "Must configure tupkg via ~/.tupkg, cancelled" |