hyprland-void-dots/scripts/utils.sh
2024-03-22 00:01:45 +03:30

15 lines
248 B
Bash
Executable file

#!/bin/bash
log() {
local timestamp=$(date +"%T")
local message="======> $1 : $timestamp"
echo -e "\n$message"
}
check_sudo() {
if [ "$(id -u)" != 0 ]; then
echo "Please run the script with sudo."
exit 1
fi
}