🦈🏠 Well I did things - Hopefully nothing breaks 🏠🦈

This commit is contained in:
Jason 2021-04-08 18:09:18 -04:00 committed by casjay
parent b4c8c3646f
commit 8ca6190b34
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F
2 changed files with 20 additions and 10 deletions

View File

@ -43,19 +43,25 @@ scripts_check
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Defaults # Defaults
APPNAME="${APPNAME:-MesloLGSNF}" APPNAME="${APPNAME:-MesloLGSNF}"
APPDIR="${APPDIR:-$SHARE/CasjaysDev/fontmgr/$APPNAME}" APPDIR="$SHARE/CasjaysDev/fontmgr/$APPNAME"
INSTDIR="${APPDIR}" INSTDIR="$SHARE/CasjaysDev/fontmgr/$APPNAME"
REPO="${FONTMGRREPO:-https://github.com/fontmgr/$APPNAME}" REPO_BRANCH="${GIT_REPO_BRANCH:-master}"
REPORAW="${REPORAW:-$REPO/raw}" REPO="${FONTMGRREPO:-https://github.com/fontmgr}/$APPNAME"
APPVERSION="$(__appversion "$REPORAW/master/version.txt")" REPORAW="$REPO/raw/$REPO_BRANCH"
APPVERSION="$(__appversion "$REPORAW/version.txt")"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Require a version higher than
fontmgr_req_version "$APPVERSION"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Call the fontmgr function # Call the fontmgr function
fontmgr_install fontmgr_install
fontmgr_run_init
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Script options IE: --help # Script options IE: --help
show_optvars "$@" show_optvars "$@"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# initialize the installer
fontmgr_run_init
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Ensure directories exist # Ensure directories exist
ensure_dirs ensure_dirs
ensure_perms ensure_perms
@ -65,7 +71,7 @@ if __am_i_online; then
if [ -d "$INSTDIR/.git" ]; then if [ -d "$INSTDIR/.git" ]; then
execute "git_update $INSTDIR" "Updating $APPNAME font package" execute "git_update $INSTDIR" "Updating $APPNAME font package"
else else
execute "git_clone $REPO/$APPNAME $INSTDIR" "Installing $APPNAME font package" execute "git_clone $REPO $INSTDIR" "Installing $APPNAME font package"
fi fi
# exit on fail # exit on fail
failexitcode $? "Git has failed" failexitcode $? "Git has failed"
@ -81,6 +87,10 @@ execute "run_postinst" "Running post install scripts"
# create version file # create version file
fontmgr_install_version fontmgr_install_version
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# exit # run exit function
run_exit run_exit
# end # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# End application
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# lets exit with code
exit ${exitCode:-$?}

View File

@ -1 +1 @@
031220211545-git 202104081809-git