Skip to content

Commit

Permalink
installer done
Browse files Browse the repository at this point in the history
  • Loading branch information
Official21A committed Nov 22, 2020
1 parent a471b59 commit 7f736b0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion install/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Load the main functions
source "functions.sh"


# this function checks whats needed for shell script
function check_requirments {
if ! [[ "$(python3 -V)" =~ "Python 3" ]]; then
Expand All @@ -29,7 +28,21 @@ function check_requirments {
echo "Requirements checked."
}

# this function sets the application requirements
function set_base {
if [ -f "package.zip" ]; then
echo "Package finding > OK"
mkdir googleit
unzip -q package.zip -d googleit
echo "Installed Successfully."
else
echo "Error: Directory 'package.zip' does not exists."
exit -1
fi
}

# Script starts
echo "Running installer ..."
check_requirments
set_base
echo "Exit staus : 0"

0 comments on commit 7f736b0

Please sign in to comment.