From 4046267e9cbe59be8d0b5d25ace0affe0509423f Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Fri, 21 Aug 2020 15:52:54 +0300 Subject: [PATCH] stonks: - Added GPL-v3. - Check if jq is installed, if not, quit. Signed-off-by: HeshamTB --- stonks | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) mode change 100755 => 100644 stonks diff --git a/stonks b/stonks old mode 100755 new mode 100644 index 9623fc2..15f1f4e --- a/stonks +++ b/stonks @@ -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 . + #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