aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-17 01:31:46 -0700
committerfriendica <info@friendica.com>2013-09-17 01:31:46 -0700
commit3354abfd428d1baef3d69886b75588163292aeae (patch)
tree7f68c75d3e784c704460e1f55f99a847317ef8d9 /util
parent4335ef68d6e94d7e2ea8d8865c2c5bb0a60b483f (diff)
downloadvolse-hubzilla-3354abfd428d1baef3d69886b75588163292aeae.tar.gz
volse-hubzilla-3354abfd428d1baef3d69886b75588163292aeae.tar.bz2
volse-hubzilla-3354abfd428d1baef3d69886b75588163292aeae.zip
add -C cfgfile option to shred to allow multiple configurations. I just added the option for multiple configs, I didn't make it work as it requires quite a bit of change to the shred program flow; which tries to load the default config before doing anything at all.
Diffstat (limited to 'util')
-rwxr-xr-xutil/shred/shred5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/shred/shred b/util/shred/shred
index 113898ff9..2e463ac6d 100755
--- a/util/shred/shred
+++ b/util/shred/shred
@@ -43,6 +43,8 @@ OPTIONS:
-h Show this message
-c Command
+
+ -C Config-Filename
Valid Commands:
statuses_update
@@ -141,7 +143,6 @@ load_config () {
}
main () {
- load_config
fcli_command=
fcli_status=
@@ -152,6 +153,7 @@ main () {
do
case $name in
c) fcli_command="$OPTARG";;
+ C) FCLI_RC="$OPTARG";;
s) fcli_status="$OPTARG";;
r) fcli_in_reply_to_status_id="$OPTARG";;
f) fcli_file="$OPTARG";;
@@ -160,6 +162,7 @@ main () {
exit 2;;
esac
done
+ load_config
if [[ "$fcli_help_flag" == "1" ]]; then case $fcli_command in
statuses_update)