Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] [quill PATCH v2 3/4] quill: Allow specifying version on command line when updating

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • 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





Archive powered by MHonArc 2.6.24.

Top of Page