aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-11-18 20:24:07 +0000
committerNicolas Vigier <boklm@mageia.org>2011-11-18 20:24:07 +0000
commit6da1614aac84cddcace534fdeb3aa1e0601056f0 (patch)
tree2a6d498c0506de8d435d31a0d60c4cc085f00b5a
parent24c8b151e2a2cbbc04f9b8dd0dad3aef20590683 (diff)
downloadrepoctl-6da1614aac84cddcace534fdeb3aa1e0601056f0.tar
repoctl-6da1614aac84cddcace534fdeb3aa1e0601056f0.tar.gz
repoctl-6da1614aac84cddcace534fdeb3aa1e0601056f0.tar.bz2
repoctl-6da1614aac84cddcace534fdeb3aa1e0601056f0.tar.xz
repoctl-6da1614aac84cddcace534fdeb3aa1e0601056f0.zip
allow changing path to function file by creating file /etc/repoctl_functions
-rwxr-xr-xrepoctl4
1 files changed, 3 insertions, 1 deletions
diff --git a/repoctl b/repoctl
index fdc31a0..023fa06 100755
--- a/repoctl
+++ b/repoctl
@@ -1,6 +1,8 @@
#!/bin/bash
-. ./functions
+REPOCTL_FUNCTIONS='/usr/share/repoctl/functions'
+[ -f /etc/repoctl_functions ] && REPOCTL_FUNCTIONS=$(cat /etc/repoctl_functions)
+. $REPOCTL_FUNCTIONS
function usage_cmd()
{