🚀 feat(_postinstall): add post installation/upgrade function

This commit is contained in:
Eshan Roy
2024-11-29 08:27:26 +05:30
parent 13b4662c19
commit e80ac98a3d

View File

@@ -0,0 +1,14 @@
post_upgrade() {
if usr/bin/pacman-key -l >/dev/null 2>&1; then
usr/bin/pacman-key --populate snigdhaos
else
echo " >>> Run \`pacman-key --init\` to set up your pacman keyring."
echo " >>> Then run \`pacman-key --populate snigdhaos\` to install the Snigdha OS keyring."
fi
}
post_install() {
if [ -x usr/bin/pacman-key ]; then
post_upgrade
fi
}