sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
[SM-Discuss] [quill PATCH v2 3/4] quill: Allow specifying version on command line when updating
- From: Ismael Luceno <ismael AT sourcemage.org>
- To: Jaka Kranjc <smgl AT lynxlynx.info>
- Cc: Ismael Luceno <ismael AT sourcemage.org>, sm-discuss AT lists.ibiblio.org
- Subject: [SM-Discuss] [quill PATCH v2 3/4] quill: Allow specifying version on command line when updating
- Date: Thu, 25 Dec 2014 20:11:42 -0300
Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
---
usr/bin/quill | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/usr/bin/quill b/usr/bin/quill
index 6ceae80..7ea002e 100755
--- a/usr/bin/quill
+++ b/usr/bin/quill
@@ -89,10 +89,13 @@ while true; do
esac
shift
done
-if [[ -z $1 && -n $QUILL_UPDATE ]]; then
- error_msg "Missing spellname argument!"
- sleep 1
- quill_help 104
+if [[ -n $QUILL_UPDATE ]]; then
+ if [[ -z $1 ]]; then
+ error_msg "Missing spellname argument!"
+ sleep 1
+ quill_help 104
+ fi
+ SPELL_VERSION="$2"
elif [[ -n $2 ]]; then
message "Discarding leftover arguments!"
fi
--
2.2.1
-
[SM-Discuss] [quill PATCH v2 1/4] quill: Allow specifying source URL on command line,
Ismael Luceno, 12/25/2014
- [SM-Discuss] [quill PATCH v2 2/4] quill: Allow specifying URL as second argument on CLI, Ismael Luceno, 12/25/2014
- [SM-Discuss] [quill PATCH v2 3/4] quill: Allow specifying version on command line when updating, Ismael Luceno, 12/25/2014
- [SM-Discuss] [quill PATCH v2 4/4] libcopy: Sort presented grimoire and section lists, Ismael Luceno, 12/25/2014
Archive powered by MHonArc 2.6.24.