diff options
author | Xuanwo | 2020-06-29 18:03:33 +0800 |
---|---|---|
committer | Xuanwo | 2020-06-29 18:03:33 +0800 |
commit | c1eef864cc4beff6a9432ff74d7a8b18666580b5 (patch) | |
tree | b3834522dea93ae372329d0f149aefc99ded9122 | |
parent | e778f12a56e71082a360578ac0f44019d9e28170 (diff) | |
download | aur-c1eef864cc4beff6a9432ff74d7a8b18666580b5.tar.gz |
misc: Update shell
Signed-off-by: Xuanwo <xuanwo@archlinuxcn.org>
-rwxr-xr-x | update.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/update.sh b/update.sh index 1dde513b8386..2f08dfb423fb 100755 --- a/update.sh +++ b/update.sh @@ -21,10 +21,10 @@ verlt $oldpkgver $pkgver if [ $? -eq 0 ]; then wget $downloadLink wget $checksumLink - + checksumFile=$(sed -r 's|.*/(.*\.tar\.gz\.sha256)|\1|' <<< $checksumLink) downloadFile=$(sed -r 's|.*/(.*\.tar\.gz)|\1|' <<< $downloadLink) - + sha256sum --status -c "$checksumFile" if [ $? -eq 0 ]; then checksum=`sha256sum "TeamCity-$pkgver.tar.gz" | cut -d " " -f1` @@ -34,8 +34,7 @@ if [ $? -eq 0 ]; then makepkg --printsrcinfo > .SRCINFO rm $checksumFile rm $downloadFile - printf "Built updated TeamCity package.\n\nOld version: %s\nNew version: %s" "$oldpkgver" "$pkgver" | mail -s "TeamCity package was updated" "qg83d18rbg@pomail.net" - printf "Built updated TeamCity package.\n\nOld version: %s\nNew version: %s" "$oldpkgver" "$pkgver" | mail -s "TeamCity package was updated" "mastacheata+aur@gmail.com" + printf "Built updated TeamCity package.\n\nOld version: %s\nNew version: %s" "$oldpkgver" "$pkgver" else echo "An error occured" fi |