Skip to content
Browse files

Fix handling empty message. Place example of config instead of symlink.

  • Loading branch information...
1 parent 7c0c977 commit 8a1b8e2220ca4ca7020afaac98b1813de4d9c211 @Hubbitus committed
Showing with 13 additions and 2 deletions.
  1. +0 −1 .config
  2. +11 −0 .config
  3. +1 −1 getopt_long.bash
  4. +1 −0 unisender
View
1 .config
View
11 .config
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# This file must be placed at: ~/.config/unisender/config
+
+#LOG_FILE=/dev/null
+LOG_FILE=~/unisender.log
+
+#API_KEY=123456789
+FROM="Unisender"
+# You may also wish define default TO
+#TO=79991234567
View
2 getopt_long.bash
@@ -40,7 +40,7 @@ set -- `$getopt_CMD -u --options "$GETOPT_STRING" --longoptions "$LONG_GETOPT_ST
shift
done
#tail, to renew in caller
-export NON_OPT=$( echo $@ | sed -r 's/^-- //' )
+export NON_OPT=$( echo $@ | sed -r 's/^-- *//' )
}
#long_getopt_parse $@
View
1 unisender
@@ -1,6 +1,7 @@
#!/bin/bash
. ~/.config/unisender/config
+. ./.config
export GETOPT_STRING="k:t:f:"
export LONG_GETOPT_STRING="key:,to:,from:"

0 comments on commit 8a1b8e2

Please sign in to comment.
Something went wrong with that request. Please try again.