X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=shell%2Ffunctions;h=19109e753aa2c04af9983ba55670dece40bb85b4;hb=73ebea73ed365e5a519a6edf81940816a881a0e5;hp=10283a393f3903afd5aba46178bc26eb933c4bc4;hpb=614f9080ac810a2f4c0a5244bca856f3358e625e;p=config%2Fdotfiles.git diff --git a/shell/functions b/shell/functions index 10283a3..19109e7 100644 --- a/shell/functions +++ b/shell/functions @@ -21,7 +21,7 @@ # Doesn't fit perfectly in this file, but this is the best place to make it # available everywhere. source_debug() { - if [ x$DEBUG != x ]; then + if test "x$DEBUG" != x; then echo "$@" fi } @@ -30,14 +30,14 @@ source_debug() { source_config() { source_debug "source_config(): $1" - if [ -f $1 ]; then + if test -f "$1"; then source_debug ". $1" - . $1 + . "$1" fi - if [ -f $1.local ]; then + if test -f "$1.local"; then source_debug ". $1.local" - . $1.local + . "$1.local" fi }