From 6da1614aac84cddcace534fdeb3aa1e0601056f0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Fri, 18 Nov 2011 20:24:07 +0000 Subject: allow changing path to function file by creating file /etc/repoctl_functions --- repoctl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() { -- cgit v1.2.1