aboutsummaryrefslogtreecommitdiffsponsor
diff options
context:
space:
mode:
-rw-r--r--efi-sync2
1 files changed, 1 insertions, 1 deletions
diff --git a/efi-sync b/efi-sync
index 02ab587..585b59f 100644
--- a/efi-sync
+++ b/efi-sync
@@ -43,7 +43,7 @@ require_efi () {
}
require_root () {
- if [[ $USER != "root" ]]; then
+ if [[ "$(id --user --name)" != "root" ]]; then
log "command must be run as root"
exit 1
fi