Fix typo
This commit is contained in:
parent
2702bf8bf2
commit
32c5fbc01d
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
setPermissions() {
|
setPermissions() {
|
||||||
|
useradd calbuilder -m
|
||||||
echo "nobody ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
echo "nobody ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
visudo -c
|
visudo -c
|
||||||
chmod -R a+rw .
|
chmod -R a+rw .
|
||||||
|
@ -34,7 +35,7 @@ installAurDeps() {
|
||||||
importPrivateKey() {
|
importPrivateKey() {
|
||||||
echo "$gpgPrivateKey" > private.key
|
echo "$gpgPrivateKey" > private.key
|
||||||
gpgFlags=("--batch" "--pinentry-mode" "loopback" "--passphrase")
|
gpgFlags=("--batch" "--pinentry-mode" "loopback" "--passphrase")
|
||||||
sudo -Hu nobody gpg "${gpgFlags[@]}" "$gpgPassphrase" --import private.key
|
sudo -H -u nobody gpg "${gpgFlags[@]}" "$gpgPassphrase" --import private.key
|
||||||
rm private.key
|
rm private.key
|
||||||
sedCommand="gpg ${gpgFlags[*]} \"$gpgPassphrase\""
|
sedCommand="gpg ${gpgFlags[*]} \"$gpgPassphrase\""
|
||||||
makepkgSigFile="/usr/share/makepkg/integrity/generate_signature.sh"
|
makepkgSigFile="/usr/share/makepkg/integrity/generate_signature.sh"
|
||||||
|
@ -44,7 +45,7 @@ importPrivateKey() {
|
||||||
buildPackage() {
|
buildPackage() {
|
||||||
if [ -n "$gpgPrivateKey" ] && [ -n "$gpgPublicKey" ]; then
|
if [ -n "$gpgPrivateKey" ] && [ -n "$gpgPublicKey" ]; then
|
||||||
importPrivateKey
|
importPrivateKey
|
||||||
sudo -Hu nobody makepkg -s --sign --key "$gpgPublicKey" --noconfirm
|
sudo -H -u nobody makepkg -s --sign --key "$gpgPublicKey" --noconfirm
|
||||||
else
|
else
|
||||||
sudo -u nobody makepkg -s --noconfirm
|
sudo -u nobody makepkg -s --noconfirm
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue