tCan take the port name as an argument - scripts - various script and utils
HTML git clone git://z3bra.org/scripts
DIR Log
DIR Files
DIR Refs
---
DIR commit f970eda0041c96afca5cff3105f269ef285f8266
DIR parent ffc9d243ce88079dc765c83ad91c04fc3413d24c
HTML Author: z3bra <willy@mailoo.org>
Date: Mon, 28 Apr 2014 18:05:06 +0200
Can take the port name as an argument
Diffstat:
M prtmk | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
DIR diff --git a/prtmk b/prtmk
t@@ -13,8 +13,7 @@ echo_color () {
tput sgr0
}
-
-read -p 'Name : ' name
+test -n "$1" && name=$1 || read -p 'Name : ' name
read -p 'Description : ' description
read -p 'Version : ' version
read -p 'URL : ' url