Comment 1 for bug 871621

Revision history for this message
Guillaume Lefranc (tanj) wrote :

Patch following

--- pt-stalk 2011-09-01 11:01:03.000000000 -0500
+++ /usr/bin/pt-stalk 2011-10-10 02:57:18.000000000 -0500
@@ -7,8 +7,8 @@
 # ########################################################################
 # Check for the existence of a config file and source it if it exists
 # ########################################################################
-if [ -f "${0}.conf" ]; then
- . "${0}.conf"
+if [ -f "${0##*/}.conf" ]; then
+ . "${0##*/}.conf"
 fi

 # ########################################################################