Commit 0ccd8233 authored by Thomas Bächler's avatar Thomas Bächler
Browse files

fixed integrity check when using PKGDEST

fixed tab/space indentation
parent c42e37bd
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -52,8 +52,8 @@ 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
	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