aboutsummaryrefslogtreecommitdiff
path: root/repo/.hook/trustedqsl
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2022-10-25 13:10:14 +0800
committerKunoiSayami <[email protected]>2022-10-25 13:10:14 +0800
commit978011b008721d66b12dd00f6fe552d39f7b4b70 (patch)
tree77a3c3ae87d3c83131a21837efe01ef1729fc642 /repo/.hook/trustedqsl
parent8aa2177d248e0a8d35ceb9355cc1d92f90a85aa0 (diff)
feat(script): Optimize hook and build script
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'repo/.hook/trustedqsl')
-rwxr-xr-xrepo/.hook/trustedqsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/repo/.hook/trustedqsl b/repo/.hook/trustedqsl
index 31951e3..b4a47f5 100755
--- a/repo/.hook/trustedqsl
+++ b/repo/.hook/trustedqsl
@@ -1,5 +1,5 @@
#!/bin/bash
-grep 'archlinuxcn' /etc/pacman.conf || exit
+grep 'archlinuxcn' /etc/pacman.conf && exit
echo '' | sudo tee -a /etc/pacman.conf >/dev/null
echo 'W2FyY2hsaW51eGNuXQpTZXJ2ZXIgPSBodHRwczovL3JlcG8uYXJjaGxpbnV4Y24ub3JnLyRhcmNoCgo=' | base64 -d | sudo tee -a /etc/pacman.conf
sudo pacman --needed --noconfirm -Sy archlinuxcn-keyring \ No newline at end of file