silly bash

This commit is contained in:
Erica Marigold 2023-07-24 20:54:13 +05:30 committed by GitHub
parent f98c3d09c4
commit 1f6fa22155
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,8 +38,8 @@ function test() {
# Test with our modified `PKGBUILD` in a temporary directory # Test with our modified `PKGBUILD` in a temporary directory
orig_dir=$(pwd) orig_dir=$(pwd)
testing_dir=$(mktmp) testing_dir=$(mktemp)
cp PKGBUILD $testing_dir/ && cd $testing_dir cp PKGBUILD $testing_dir/PKGBUILD && cd $testing_dir
log "#" "Moved \`PKGBUILD\` into testing directory $testing_dir" log "#" "Moved \`PKGBUILD\` into testing directory $testing_dir"
@ -76,7 +76,7 @@ declare -a aur_ssh_urls=("ssh://aur@aur.archlinux.org/lune.git" "ssh://aur@aur.a
# TODO: For the `lune` package, we need to also replace the sha256 sums in the `PKGBUILD` # TODO: For the `lune` package, we need to also replace the sha256 sums in the `PKGBUILD`
for ssh_url in "${aur_ssh_urls[@]}" for ssh_url in "${aur_ssh_urls[@]}"
do do
if [ $ssh_url -ne "ssh://aur@aur.archlinux.org/lune-git.git" ]; then if [ $ssh_url != "ssh://aur@aur.archlinux.org/lune-git.git" ]; then
log "*" "Cloning AUR package from $ssh_url" log "*" "Cloning AUR package from $ssh_url"
# NOTE: We need to have our public and private keys in `~/.ssh/aur.pub` & `~/.ssh/aur` respectively # NOTE: We need to have our public and private keys in `~/.ssh/aur.pub` & `~/.ssh/aur` respectively
@ -89,4 +89,4 @@ do
fi fi
done done
log "*" "AUR packaging routine complete." log "*" "AUR packaging routine complete."