changed the layout, should not effect script behaviour
This commit is contained in:
parent
293c4b9965
commit
0997cf8a9c
15 changed files with 386 additions and 294 deletions
32
docker.sh
32
docker.sh
|
@ -123,15 +123,29 @@ main() {
|
|||
}
|
||||
|
||||
if getImports; then
|
||||
case "$1" in
|
||||
--silent | -s)
|
||||
silent=true
|
||||
echo_warning "Running the script silently.."
|
||||
;;
|
||||
*)
|
||||
silent=false
|
||||
;;
|
||||
esac
|
||||
# ─< package variable >───────────────────────────────────────────────────────────────────
|
||||
unset PACKAGE
|
||||
|
||||
# ─< argument list variables >────────────────────────────────────────────────────────────
|
||||
silent=false
|
||||
|
||||
sleep 0.1
|
||||
|
||||
PACKAGE=docker
|
||||
if command_exists "$PACKAGE"; then
|
||||
echo_warning "$PACKAGE is already installed!"
|
||||
echo_warning "Exiting now!"
|
||||
exit 69
|
||||
fi
|
||||
|
||||
# ─< parse arguments and get variable contents >──────────────────────────────────────────
|
||||
for arg in "$@"; do
|
||||
case "$arg" in
|
||||
--silent | -s)
|
||||
export silent=true
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if main; then
|
||||
init_docker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue