mirror of
				https://github.com/fontmgr/MesloLGSNF.git
				synced 2025-11-01 04:44:32 +08:00 
			
		
		
		
	🦈🏠❗ Well I did things - Hopefully nothing breaks ❗🏠🦈
This commit is contained in:
		
							
								
								
									
										28
									
								
								install.sh
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								install.sh
									
									
									
									
									
								
							| @@ -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:-$?} | ||||||
|   | |||||||
| @@ -1 +1 @@ | |||||||
| 031220211545-git | 202104081809-git | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user