From 001089e6c1cf5ffbe4829fbfa633e7b6fb1131ae Mon Sep 17 00:00:00 2001 From: Koddy Date: Thu, 22 Aug 2013 22:24:34 +0400 Subject: [PATCH 1/4] Modelname as parameter --- SonyUAProf.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SonyUAProf.sh b/SonyUAProf.sh index 8b6df80..ea05b6c 100644 --- a/SonyUAProf.sh +++ b/SonyUAProf.sh @@ -15,6 +15,8 @@ if [[ -z ${1} ]] ; then echo -n "Model (e.g. LT22i): " read l +else + l=${1} fi echo "finding..." From bd7993d8aaaf854c9c27cc4d1a5ff61decfa0c77 Mon Sep 17 00:00:00 2001 From: Koddy Date: Thu, 22 Aug 2013 22:53:38 +0400 Subject: [PATCH 2/4] MIT license --- LICENSE.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 LICENSE.md diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..cb5fbeb --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,8 @@ +# The MIT License +Copyright (c) 2013 Anton Konoplev + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. From 7236007dc1a819e27213949a8e00e488a8190b58 Mon Sep 17 00:00:00 2001 From: Koddy Date: Thu, 22 Aug 2013 22:55:01 +0400 Subject: [PATCH 3/4] Read me --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e69de29..f69c514 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,2 @@ +Returns user-agent profile by Sony mobile phone model name +Find source code here: https://github.com/kodopik/SonyUAProf From 43f69ea2e39be3384350adac70b1bfe26b681c12 Mon Sep 17 00:00:00 2001 From: Koddy Date: Thu, 22 Aug 2013 22:57:58 +0400 Subject: [PATCH 4/4] Tabs 2 spaces --- README.md | 3 ++- SonyUAProf.sh | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f69c514..a28084e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ -Returns user-agent profile by Sony mobile phone model name +Returns user-agent profile by Sony mobile phone model name. + Find source code here: https://github.com/kodopik/SonyUAProf diff --git a/SonyUAProf.sh b/SonyUAProf.sh index ea05b6c..8c18a44 100644 --- a/SonyUAProf.sh +++ b/SonyUAProf.sh @@ -5,16 +5,16 @@ HELP_LINES="-h|--help" if [[ ${1} =~ ${HELP_LINES} ]] ; then - echo "Returns user-agent profile by Sony mobile phone model name" - echo "Usage: ./SonyUAProf.sh [MODELNAME]" - echo "e.g. ./SonyUAProf.sh LT22i" - exit 0 + echo "Returns user-agent profile by Sony mobile phone model name" + echo "Usage: ./SonyUAProf.sh [MODELNAME]" + echo "e.g. ./SonyUAProf.sh LT22i" + exit 0 fi if [[ -z ${1} ]] ; then - echo -n "Model (e.g. LT22i): " - read l + echo -n "Model (e.g. LT22i): " + read l else l=${1} fi