summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2014-12-17 15:05:12 +0100
committercos <cos>2014-12-17 15:05:12 +0100
commit7d2c6e2a32f94375be91f38481c38d68dd997610 (patch)
tree49ba2d68b4b14a4142966a4943a88da6fd94778d
parent4611ecfa9f1419b23beac04bcef0e102ec76d489 (diff)
downloadmat-7d2c6e2a32f94375be91f38481c38d68dd997610.zip
Use system wide config file for label_name & label_id_prefix.
-rwxr-xr-xmat4
1 files changed, 2 insertions, 2 deletions
diff --git a/mat b/mat
index 382f003..16478fe 100755
--- a/mat
+++ b/mat
@@ -14,8 +14,8 @@ use Text::Iconv;
tie my %Config, "Config::Simple", '/etc/mat.conf';
-use constant LABEL_NAME => `sed --silent 's/^label_name //p' < config|tr -d '\\n'`;
-use constant LABEL_ID_PREFIX => `sed --silent 's/^label_id_prefix //p' < config|tr -d '\\n'`;
+use constant LABEL_NAME => $Config{'label_name'};
+use constant LABEL_ID_PREFIX => $Config{'label_id_prefix'};
#use Data::Dumper;