stonks:
- Added GPL-v3. - Check if jq is installed, if not, quit. Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
3f889404d1
commit
4046267e9c
25
stonks
Executable file → Normal file
25
stonks
Executable file → Normal file
@ -1,9 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Copyright (C) 2020 Hesham Banafa
|
||||
|
||||
#This file is part of stonks.
|
||||
|
||||
# stonks is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# any later version.
|
||||
#
|
||||
# stonks is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with stonks. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#cli interface to track TASI profolio
|
||||
# 19 Aug 2020 - H.B
|
||||
|
||||
version=0.1-alpha
|
||||
version_msg="stonks version $version"
|
||||
version_msg="stonks $version"
|
||||
echo "$version_msg"
|
||||
|
||||
#check jq
|
||||
if ! command -v jq &> /dev/null
|
||||
then
|
||||
echo "Can't find jq (json)"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user