diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-11-18 20:24:07 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-11-18 20:24:07 +0000 |
commit | 6da1614aac84cddcace534fdeb3aa1e0601056f0 (patch) | |
tree | 2a6d498c0506de8d435d31a0d60c4cc085f00b5a | |
parent | 24c8b151e2a2cbbc04f9b8dd0dad3aef20590683 (diff) | |
download | repoctl-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-x | repoctl | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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() { |