Files
snigdhaos-pkgbuilds/snigdhaos-utils/pacman
2024-12-22 02:22:27 +05:30

11 lines
300 B
Bash

#!/bin/bash
# Custom pacman wrapper to run snigdhaos-update.sh
# Check if the user wants to update the system
if [[ "$@" == "-Syyu" ]]; then
sudo /usr/local/bin/snigdhaos-update.sh # Run your custom update script
else
# Call the real pacman for other operations
/usr/bin/pacman "$@"
fi