summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2011-06-12 10:20:51 +0000
committerPaul Buetow <paul@buetow.org>2011-06-12 10:20:51 +0000
commit95ecbb293d91643a3711111407e050c2fdd3f94b (patch)
tree4e4d2c352c316571876222eeb44751fb1ca089a5
parent090a4035a2d9a3fa743b5b9129025c8b5db544fa (diff)
Bash golfing
-rwxr-xr-xpwgrep.sh5
1 files changed, 1 insertions, 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 () {