This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This bash script bypasses the crashing problem when using BTRFS and Snapper with Pacman. Useful as long as the Pacman | |
# space computation bug is not fixed. | |
# This script expects only a single mountpoint to be updated, and only the root config of snapper to be used. | |
# `bc` (basic calculator) needs to be installed which did NOT come by default with my Garuda Plasma installation. | |
if [ $(id -u) != 0 ]; then | |
exec sudo -s "$0" "$@"; | |
fi | |
# does not work, it will not show the dialog for unknown reason, same with send-notify |