[pacman-dev] [PATCH] Fix double spaces in "Running %s as root is not allowed" message
From: Timothy Redaelli <timothy.redaelli@gmail.com> --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 33dff245..b4577f10 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -3435,7 +3435,7 @@ CARCH=${_CARCH:-$CARCH} if (( ! INFAKEROOT )); then if (( EUID == 0 )); then error "$(gettext "Running %s as root is not allowed as it can cause permanent,\n\ -catastrophic damage to your system.")" +catastrophic damage to your system.")" "$0" exit 1 # $E_USER_ABORT fi else -- 2.2.0
On 19/12/14 23:22, tredaelli@archlinux.info wrote:
From: Timothy Redaelli <timothy.redaelli@gmail.com>
--- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 33dff245..b4577f10 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -3435,7 +3435,7 @@ CARCH=${_CARCH:-$CARCH} if (( ! INFAKEROOT )); then if (( EUID == 0 )); then error "$(gettext "Running %s as root is not allowed as it can cause permanent,\n\ -catastrophic damage to your system.")" +catastrophic damage to your system.")" "$0" exit 1 # $E_USER_ABORT fi else
I modified this to just use "makepkg" rather than $0.
participants (2)
-
Allan McRae
-
tredaelli@archlinux.info