🦈🏠🐜 Updated installer 🐜🦈🏠

This commit is contained in:
Jason 2020-08-28 17:35:33 -04:00 committed by casjay
parent 359e0f11de
commit 414f3b2952
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F
3 changed files with 51 additions and 66 deletions

View File

@ -1,19 +1,25 @@
## MesloLGSNF Font
requires:
Requires:
```bash
sudo bash -c "$(curl -LSs https://github.com/casjay-dotfiles/scripts/raw/master/install.sh)"
```shell
sudo bash -c "$(curl -LSs https://github.com/dfmgr/installer/raw/master/install.sh)"
```
install:
Automatic:
```bash
```shell
bash -c "$(curl -LSs https://github.com/fontmgr/MesloLGSNF/raw/master/install.sh)"
```
Install:
```shell
sudo fontmgr install MesloLGSNF
```
update:
Update:
```bash
```shell
sudo fontmgr update MesloLGSNF
```

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
APPNAME="$(basename $0)"
APPNAME="MesloLGSNF"
USER="${SUDO_USER:-${USER}}"
HOME="${USER_HOME:-${HOME}}"
@ -8,7 +8,7 @@ HOME="${USER_HOME:-${HOME}}"
# @Author : Jason
# @Contact : casjaysdev@casjay.net
# @File : install.sh
# @Created : Wed, Aug 09, 2020, 02:00 EST
# @Created : Fr, Aug 28, 2020, 00:00 EST
# @License : WTFPL
# @Copyright : Copyright (c) CasjaysDev
# @Description : installer script for MesloLGSNF font
@ -28,49 +28,42 @@ if [ -f "$SCRIPTSFUNCTDIR/functions/$SCRIPTSFUNCTFILE" ]; then
elif [ -f "$HOME/.local/share/CasjaysDev/functions/$SCRIPTSFUNCTFILE" ]; then
. "$HOME/.local/share/CasjaysDev/functions/$SCRIPTSFUNCTFILE"
else
mkdir -p "/tmp/CasjaysDev/functions"
curl -LSs "$SCRIPTSFUNCTURL/$SCRIPTSFUNCTFILE" -o "/tmp/CasjaysDev/functions/$SCRIPTSFUNCTFILE" || exit 1
. "/tmp/CasjaysDev/functions/$SCRIPTSFUNCTFILE"
curl -LSs "$SCRIPTSFUNCTURL/$SCRIPTSFUNCTFILE" -o "/tmp/$SCRIPTSFUNCTFILE" || exit 1
. "/tmp/$SCRIPTSFUNCTFILE"
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
system_installdirs
# OS Support: supported_os unsupported_oses
unsupported_oses
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Make sure the scripts repo is installed
#scripts_check
scripts_check
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Defaults
APPNAME="MesloLGSNF"
PLUGNAME=""
APPNAME="${APPNAME:-MesloLGSNF}"
APPDIR="${APPDIR:-$SHARE/CasjaysDev/fontmgr}/$APPNAME"
REPO="${FONTMGRREPO:-https://github.com/fontmgr}/${APPNAME}"
REPORAW="${REPORAW:-$REPO/raw}"
APPVERSION="$(curl -LSs $REPORAW/master/version.txt)"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# git repos
# dfmgr_install fontmgr_install iconmgr_install pkmgr_install systemmgr_install thememgr_install wallpapermgr_install
PLUGINREPO=""
fontmgr_install
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Version
APPVERSION="$(curl -LSs ${FONTMGRREPO:-https://github.com/fontmgr}/$APPNAME/raw/master/version.txt)"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# set the install type
font_installer
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set options
APPDIR="$SHARE/CasjaysDev/fontmgr/$APPNAME"
PLUGDIR="$SHARE/$APPNAME/${PLUGNAME:-plugins}"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Script options IE: --help
@ -79,6 +72,12 @@ show_optvars "$@"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Do not update
#systemmgr_noupdate
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Requires root - no point in continuing
#sudoreq # sudo required
@ -117,7 +116,7 @@ install_cpan $CPAN
install_gem $GEMS
# Other dependencies
dotfilesreq
dotfilesreq git
dotfilesreqadmin
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -134,31 +133,12 @@ ensure_perms
if [ -d "$APPDIR/.git" ]; then
execute \
"git_update $APPDIR" \
"Updating $APPNAME fonts"
"Updating $APPNAME configurations"
else
execute \
"backupapp && \
git_clone -q $REPO/$APPNAME $APPDIR" \
"Installing $APPNAME fonts"
fi
# exit on fail
failexitcode
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Plugins
if [ "$PLUGNAME" != "" ]; then
if [ -d "$PLUGDIR"/.git ]; then
execute \
"git_update $PLUGDIR" \
"Updating $PLUGNAME"
else
execute \
"git_clone $PLUGINREPO $PLUGDIR" \
"Installing $PLUGNAME"
fi
"Installing $APPNAME configurations"
fi
# exit on fail
@ -169,8 +149,7 @@ failexitcode
# run post install scripts
run_postinst() {
run_postinst_global
fontmgr_run_post
}
execute \
@ -181,7 +160,7 @@ execute \
# create version file
install_fontmgr_version
fontmgr_install_version
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -1 +1 @@
082620201344-git
082820201735-git