This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new ec8da74  indicate where sudo is used
ec8da74 is described below

commit ec8da74b51e6a317c5e31ad9ee20bf884dd4e253
Author: Sam Ruby <[email protected]>
AuthorDate: Sun Dec 1 18:33:25 2019 -0500

    indicate where sudo is used
---
 config/setupmymac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/setupmymac b/config/setupmymac
index 01bf185..0961bf9 100755
--- a/config/setupmymac
+++ b/config/setupmymac
@@ -48,7 +48,7 @@ end
 
 # echo a command and run it
 def run *args
-  color "$ " + Array(args).join(' ')
+  color "$ " + "#{'sudo ' if Process.uid == 0}" + Array(args).join(' ')
   return if $dry_run
   Kernel.system *args
 end

Reply via email to