From: Alexander Smirnov <asmirnov@ilbers.de>
To: isar-users@googlegroups.com
Cc: Alexander Smirnov <asmirnov@ilbers.de>
Subject: [PATCH 1/4] scripts: Remove bashism from sh script
Date: Fri, 6 Oct 2017 13:34:19 +0300 [thread overview]
Message-ID: <20171006103422.25393-2-asmirnov@ilbers.de> (raw)
In-Reply-To: <20171006103422.25393-1-asmirnov@ilbers.de>
The '[[' is an extension supported by modern shells like bash, zsh etc...
Signed-off-by: Alexander Smirnov <asmirnov@ilbers.de>
---
scripts/start_vm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/start_vm b/scripts/start_vm
index 1ce84b7..abf9eb0 100755
--- a/scripts/start_vm
+++ b/scripts/start_vm
@@ -70,7 +70,7 @@ DISTRO=stretch
BUILD_DIR=$PWD
# Parse command line to get user configuration
-while [[ $# -gt 0 ]]
+while [ $# -gt 0 ]
do
key="$1"
--
2.1.4
next prev parent reply other threads:[~2017-10-06 10:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-06 10:34 [PATCH 0/4] Simple smoke test for QEMU Alexander Smirnov
2017-10-06 10:34 ` Alexander Smirnov [this message]
2017-10-06 10:34 ` [PATCH 2/4] scripts: Add option to route start_vm output to file Alexander Smirnov
2017-10-06 10:34 ` [PATCH 3/4] scripts: Add option to store QEMU pid Alexander Smirnov
2017-10-06 10:34 ` [PATCH 4/4] scripts: Add simple smoke test Alexander Smirnov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171006103422.25393-2-asmirnov@ilbers.de \
--to=asmirnov@ilbers.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox