mirror of
https://github.com/harish2704/installer-scripts.git
synced 2026-09-10 06:11:08 +00:00
Refactor
This commit is contained in:
+12
-1
@@ -9,13 +9,24 @@ EEE
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
. $(dirname $(readlink -f $0))/../lib/installer_common;
|
||||
appRoot=$(readlink -f $(dirname $(readlink -f $0))/.. );
|
||||
. "$appRoot/lib/installer_common";
|
||||
|
||||
printPackages(){
|
||||
cd $appDir/installer-scripts/packages;
|
||||
ls;
|
||||
}
|
||||
|
||||
updateSelf(){
|
||||
$0 --install self;
|
||||
}
|
||||
|
||||
installPackage(){
|
||||
packageName=$2;
|
||||
. "$appRoot/packages/$packageName";
|
||||
mainInstaller;
|
||||
}
|
||||
|
||||
case $1 in
|
||||
--update)
|
||||
updateSelf;
|
||||
|
||||
Reference in New Issue
Block a user