-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* give information if program is installed * google chrome installation option is added
- Loading branch information
1 parent
c6f6be4
commit d18bfd2
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Check if google chrome is not installed | ||
INSTALLED_CHROME_VERSION=$(google-chrome-stable --version) | ||
echo $INSTALLED_CHROME_VERSION | ||
if [ -z "$INSTALLED_CHROME_VERSION" ]; then | ||
echo "google chrome is not installed, starting the installation..." | ||
|
||
sudo apt update | ||
sudo apt upgrade | ||
|
||
sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | ||
sudo apt install ./google-chrome-stable_current_amd64.deb | ||
|
||
echo "Package installed successfully. Removing the installation file..." | ||
sudo rm ./google-chrome-stable_current_amd64.deb | ||
|
||
# Display a message if the installation was successful | ||
echo "google chrome has been installed successfully." | ||
else | ||
echo "google chrome is already installed." | ||
fi | ||
exec bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters