Skip to content

Commit

Permalink
πŸ¦ˆπŸ πŸœβ— Updated installer β—πŸœπŸ¦ˆπŸ 
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason committed Aug 28, 2020
1 parent 414f3b2 commit 0235a57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 55 deletions.
60 changes: 6 additions & 54 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
system_installdirs

# OS Support: supported_os unsupported_oses

unsupported_oses

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Make sure the scripts repo is installed
Expand All @@ -62,63 +58,19 @@ fontmgr_install

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Version

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Script options IE: --help

show_optvars "$@"

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Do not update

#systemmgr_noupdate

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Requires root - no point in continuing

#sudoreq # sudo required
#sudorun # sudo optional

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# end with a space

APP=""
PERL=""
PYTH=""
PIPS=""
CPAN=""
GEMS=""

# install packages - useful for package that have the same name on all oses
install_packages $APP

# install required packages using file
install_required $APP

# check for perl modules and install using system package manager
install_perl $PERL

# check for python modules and install using system package manager
install_python $PYTH

# check for pip binaries and install using python package manager
install_pip $PIPS

# check for cpan binaries and install using perl package manager
install_cpan $CPAN

# check for ruby binaries and install using ruby package manager
install_gem $GEMS

# Other dependencies
dotfilesreq git
dotfilesreqadmin

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Ensure directories exist
Expand All @@ -132,13 +84,13 @@ ensure_perms

if [ -d "$APPDIR/.git" ]; then
execute \
"git_update $APPDIR" \
"Updating $APPNAME configurations"
"git_update $APPDIR" \
"Updating $APPNAME configurations"
else
execute \
"backupapp && \
"backupapp && \
git_clone -q $REPO/$APPNAME $APPDIR" \
"Installing $APPNAME configurations"
"Installing $APPNAME configurations"
fi

# exit on fail
Expand All @@ -153,8 +105,8 @@ run_postinst() {
}

execute \
"run_postinst" \
"Running post install scripts"
"run_postinst" \
"Running post install scripts"

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
082820201735-git
082820201747-git

0 comments on commit 0235a57

Please sign in to comment.