File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ echo '::endgroup::'
5050echo ' ::group::Publishing'
5151git remote add aur " ssh://aur@aur.archlinux.org/${pkgname} .git"
5252git add -fv PKGBUILD .SRCINFO
53- if [[ $allow_empty_commits == ' true ' ]] ; then
54- git commit --allow-empty -m " $commit_message "
55- else
56- git diff-index --quiet HEAD || git commit -m " $commit_message " # use `git diff-index --quiet HEAD ||` to avoid error
57- fi
53+ 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 ;;
57+ esac
5858git push --force-with-lease -v aur master
5959echo ' ::endgroup::'
You can’t perform that action at this time.
0 commit comments