Changeset 1629 in ProjectBuilder for devel/pb


Ignore:
Timestamp:
Jun 5, 2012, 4:09:50 AM (12 years ago)
Author:
Bruno Cornec
Message:

r4911@localhost: bruno | 2012-06-05 02:56:19 +0200

  • Skip env var passed with sudo in analysis of cmds to allow in sudoers to avoid env to be there
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1628 r1629  
    43104310    # remove sudo and leading spaces
    43114311    $c =~ s/^\s*sudo\s+//;
     4312    # skip potential env var setup
     4313    $c =~ s/^\s*[\S]*env\s+\S+=\S+\s+//;
    43124314    # keep only the command, not the params
    43134315    $c =~ s/([^\s]+)\s.*$/$1/;
Note: See TracChangeset for help on using the changeset viewer.