From cf96dfe155e4c8b2f04068efee96178e4f0a59cf Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 26 Jul 2020 15:24:44 +0200 Subject: Cleaner --- src/gitjoe/rmuser.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gitjoe/rmuser.pl') diff --git a/src/gitjoe/rmuser.pl b/src/gitjoe/rmuser.pl index d9b056d..2840c65 100755 --- a/src/gitjoe/rmuser.pl +++ b/src/gitjoe/rmuser.pl @@ -3,6 +3,10 @@ use strict; use warnings; use Term::ANSIColor; +use constant { + DASH_PATH => '/usr/local/bin/dash', + RMUSER_PATH => '/usr/sbin/rmuser', +}; sub main { my $argc = $#ARGV + 1; @@ -15,9 +19,9 @@ sub main { } my $usr = $ARGV[0]; system( - '/usr/local/bin/dash', + DASH_PATH, '-c', - "rmuser << EOF + RMUSER_PATH . " << EOF " . $usr . " y y -- cgit v1.2.3