mirror of
https://github.com/harish2704/installer-scripts.git
synced 2026-09-10 06:11:08 +00:00
Refactor
This commit is contained in:
Executable
+34
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo $0 $1 $2 $3;
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
cat<<EEE
|
||||
installer-scripts --update | --install <app_name> | --list
|
||||
EEE
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
. $(dirname $(readlink -f $0))/../lib/installer_common;
|
||||
|
||||
printPackages(){
|
||||
cd $appDir/installer-scripts/packages;
|
||||
ls;
|
||||
}
|
||||
|
||||
case $1 in
|
||||
--update)
|
||||
updateSelf;
|
||||
;;
|
||||
|
||||
--list)
|
||||
printPackages;
|
||||
;;
|
||||
|
||||
--install)
|
||||
installPackage;
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user