Skip to content

Commit

Permalink
Merge pull request #1 from kodopik/master
Browse files Browse the repository at this point in the history
Fresh updates
  • Loading branch information
artspb committed Aug 23, 2013
2 parents 2e41f8e + 43f69ea commit b6ae167
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
8 changes: 8 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Returns user-agent profile by Sony mobile phone model name.

Find source code here: https://github.com/kodopik/SonyUAProf
14 changes: 8 additions & 6 deletions SonyUAProf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
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

echo "finding..."
Expand Down

0 comments on commit b6ae167

Please sign in to comment.