#!/bin/bash#- HELPER SCRIPT FOR DENSIFY#- original package https://github.com/hkdb/Densify#- script author Vijay Ramachandran#- site https://journaldev.com#- # Go to your home directory (preferred)cd$HOME# Download the packagegit clone https://github.com/hkdb/Densify
cd Densify
# Queue must be changed to queue in the file.# Will not work otherwisesed-i's/Queue/queue/g'$PWD/densify
# Create the symlink to /optsudoln-s$PWD /opt/Densify
# Perform the installcd /opt/Densify
sudochmod755 install.sh
sudo ./install.sh
# Export to PATHif[$SHELL=="/bin/zsh"];theniftest-f$HOME/.zshrc;thenecho'export PATH=/opt/Densify:$PATH'>>$HOME/.zshrc
source$HOME/.zshrc
elseecho"No zshrc Found! Please create a zsh config file and try again"fielseif[$SHELL=="/bin/bash"];theniftest-f$HOME/.bashrc;thenecho'export PATH=/opt/Densify:$PATH'>>$HOME/.bashrc
source$HOME/.bashrc
elseiftest-f$HOME/.bash_profile;thenecho'export PATH=/opt/Densify:$PATH'>>$HOME/.bash_profile
source$HOME/.bash_profile
elseecho"No bashrc Found! Please create a bash config file and try again"fifielseecho"Default Shell is not zsh or bash. Please add /opt/Densify to your PATH"fifi