summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 () {