From 95ecbb293d91643a3711111407e050c2fdd3f94b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 12 Jun 2011 10:20:51 +0000 Subject: Bash golfing --- pwgrep.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pwgrep.sh b/pwgrep.sh index 29ea58b..6ec8a45 100755 --- a/pwgrep.sh +++ b/pwgrep.sh @@ -38,10 +38,7 @@ DEFAULTFILESTORECATEGORY=default # From here, do not change stuff! You may edit the content of the file $RCFILE! function source_config () { - if [ -f $RCFILE ]; then - $SED 's/^/export /' $RCFILE > $RCFILE.source - source $RCFILE.source && rm $RCFILE.source - fi + [ -f $RCFILE ] && source <($SED 's/^/export /' $RCFILE) } function pwgrep_version () { -- cgit v1.2.3