Skip to content

Commit 3e18862

Browse files
committed
Use shfmt to format all shell scripts
1 parent f7aaa2a commit 3e18862

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

build.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ ssh_keyscan_types=$INPUT_SSH_KEYSCAN_TYPES
1414
export HOME=/home/builder
1515

1616
echo '::group::Adding aur.archlinux.org to known hosts'
17-
ssh-keyscan -v -t "$ssh_keyscan_types" aur.archlinux.org >> ~/.ssh/known_hosts
17+
ssh-keyscan -v -t "$ssh_keyscan_types" aur.archlinux.org >>~/.ssh/known_hosts
1818
echo '::endgroup::'
1919

2020
echo '::group::Importing private key'
21-
echo "$ssh_private_key" > ~/.ssh/aur
21+
echo "$ssh_private_key" >~/.ssh/aur
2222
chmod -vR 600 ~/.ssh/aur*
23-
ssh-keygen -vy -f ~/.ssh/aur > ~/.ssh/aur.pub
23+
ssh-keygen -vy -f ~/.ssh/aur >~/.ssh/aur.pub
2424
echo '::endgroup::'
2525

2626
echo '::group::Checksums of SSH keys'
@@ -43,17 +43,17 @@ echo 'Copying PKGBUILD...'
4343
cp -v /PKGBUILD ./
4444

4545
echo "Updating .SRCINFO"
46-
makepkg --printsrcinfo > .SRCINFO
46+
makepkg --printsrcinfo >.SRCINFO
4747

4848
echo '::endgroup::'
4949

5050
echo '::group::Publishing'
5151
git remote add aur "ssh://aur@aur.archlinux.org/${pkgname}.git"
5252
git add -fv PKGBUILD .SRCINFO
5353
case "$allow_empty_commits" in
54-
true) git commit --allow-empty -m "$commit_message";;
55-
false) git diff-index --quiet HEAD || git commit -m "$commit_message";; # use `git diff-index --quiet HEAD ||` to avoid error
56-
*) echo 'The option "allow_empty_commits" should be either "true" or "false".' && false;;
54+
true) git commit --allow-empty -m "$commit_message" ;;
55+
false) git diff-index --quiet HEAD || git commit -m "$commit_message" ;; # use `git diff-index --quiet HEAD ||` to avoid error
56+
*) echo 'The option "allow_empty_commits" should be either "true" or "false".' && false ;;
5757
esac
5858
git push --force-with-lease -v aur master
5959
echo '::endgroup::'

0 commit comments

Comments
 (0)