You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
940 B
54 lines
940 B
#!/usr/bin/env bash
|
|
|
|
installTmp="$HOME/.local/installTmp";
|
|
appDir="$HOME/.local/Apps";
|
|
localBinDir="$HOME/.local/bin";
|
|
|
|
checkPaths() {
|
|
for i in $installTmp $appDir $localBinDir; do
|
|
if [ ! -d "$i" ]; then
|
|
mkdir -p "$i";
|
|
fi
|
|
done
|
|
}
|
|
|
|
performDownloads(){
|
|
cd "$installTmp";
|
|
downloadPack;
|
|
}
|
|
|
|
doInstall(){
|
|
|
|
for i in $extractedName $installationPath; do
|
|
if [ -d "$i" ]; then
|
|
rm -rf "$i"
|
|
fi
|
|
done
|
|
installPack;
|
|
cd "$installTmp";
|
|
mv "$extractedName" "$installationPath";
|
|
}
|
|
|
|
mainInstaller(){
|
|
checkPaths;
|
|
performDownloads;
|
|
doInstall;
|
|
}
|
|
|
|
|
|
export extractedName='installer-scripts-master';
|
|
export installationPath="$appDir/$extractedName";
|
|
|
|
downloadPack(){
|
|
wget -c 'https://github.com/harish2704/installer-scripts/archive/master.zip';
|
|
}
|
|
|
|
installPack(){
|
|
unzip 'master.zip'
|
|
cd "$extractedName";
|
|
# find ./ -type f -or -type l -executable > 'binaries.lst';
|
|
touch 'binaries.lst';
|
|
}
|
|
|
|
|
|
mainInstaller;
|
|
|