Skip to content
Snippets Groups Projects
Commit ecc94f87 authored by Marcel Huber's avatar Marcel Huber
Browse files

changed to non-integer comparison

parent 1255a97b
Branches
No related tags found
No related merge requests found
Pipeline #324455 passed
#!/bin/sh
SUDO=$(command -v sudo)
sudo() {
if [ "$(id -u)" -eq "0" ]; then "$@"; else $SUDO "$@"; fi
if [ "$(id -u)" = "0" ]; then "$@"; else $SUDO "$@"; fi
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment