Leon Marz: 1 Improve indentation 1 files changed, 73 insertions(+), 77 deletions(-)
Copy & paste the following snippet into your terminal to import this patchset into git:
curl -s https://lists.sr.ht/~fultonbrowne/pine/patches/14264/mbox | git am -3Learn more about email & git
Use tabs with length 4 instead of 3 spaces --- bootstrap | 150 ++++++++++++++++++++++++++---------------------------- 1 file changed, 73 insertions(+), 77 deletions(-) diff --git a/bootstrap b/bootstrap index 67776ec..3b81cf5 100755 --- a/bootstrap @@ -1,82 +1,82 @@ #! /bin/sh -e check_var(){ - if [ -z $($1) ]; then - echo "$1 is unset" - exit 1 + if [ -z $($1) ]; then + echo "$1 is unset" + exit 1 else - return 0 + return 0 fi } help(){ - echo "download | download the package manager and pine repos - needed for all other functions to work correctly" - echo "full_install | [full path to install loacation] install everything needed for a operaational install" - echo "basic_install | [full path to install location] install everthing needed for a booting install" - echo "install | [package] [full path to pine root] install a single package" - echo "clean | remove the package manager and pine repos from the host machine" + echo "download | download the package manager and pine repos - needed for all other functions to work correctly" + echo "full_install | [full path to install loacation] install everything needed for a operaational install" + echo "basic_install | [full path to install location] install everthing needed for a booting install" + echo "install | [package] [full path to pine root] install a single package" + echo "clean | remove the package manager and pine repos from the host machine" } install(){ - echo installing $1... - $PKG_MAN b $1 - $PKG_MAN i $1 + echo installing $1... + $PKG_MAN b $1 + $PKG_MAN i $1 } get_vars(){ - export KISS_ROOT="${1-"$PWD/pine/"}" - export KISS_PATH="$PWD/temp_repos/core" - export PKG_MAN="${PKGMN-"./package_man/kiss"}" + export KISS_ROOT="${1-"$PWD/pine/"}" + export KISS_PATH="$PWD/temp_repos/core" + export PKG_MAN="${PKGMN-"./package_man/kiss"}" } download(){ - git clone https://github.com/kisslinux/kiss package_man - git clone https://git.sr.ht/~fultonbrowne/pine-repos temp_repos + git clone https://github.com/kisslinux/kiss package_man + git clone https://git.sr.ht/~fultonbrowne/pine-repos temp_repos } clean(){ - rm -rf temp_repos - rm -rf package_man + rm -rf temp_repos + rm -rf package_man } full_install(){ - mkdir $KISS_ROOT - install baselayout - install sbase - install ubase - install hbase - install awk - install dash - install linux-headers - install libressl - install busybox - install sdhcp - install zlib - install e2fsprogs - install curl - install git - install kiss - install musl - install gzip - install xz - install bzip2 - install smdev - install shinit - install m4 - install make - install flex - install binutils - install gcc + mkdir $KISS_ROOT + install baselayout + install sbase + install ubase + install hbase + install awk + install dash + install linux-headers + install libressl + install busybox + install sdhcp + install zlib + install e2fsprogs + install curl + install git + install kiss + install musl + install gzip + install xz + install bzip2 + install smdev + install shinit + install m4 + install make + install flex + install binutils + install gcc } basic_install(){ - mkdir $KISS_ROOT - install baselayout - install sbase - install ubase - install awk - install shinit - install smdev + mkdir $KISS_ROOT + install baselayout + install sbase + install ubase + install awk + install shinit + install smdev } @@ -92,28 +92,24 @@ echo " "; action=$1 case $action in - "basic_install"){ - get_vars $2 - if [ ! -e $PKG_MAN ] - then - download - fi - basic_install - };; - "full_install"){ - get_vars $2 - if [ ! -e $PKG_MAN ] - then - download - fi - full_install - };; - "download"){ - download - };; - *){ - help - };; + "basic_install"){ + get_vars $2 + if [ ! -e $PKG_MAN ]; then + download + fi + basic_install + };; + "full_install"){ + get_vars $2 + if [ ! -e $PKG_MAN ]; then + download + fi + full_install + };; + "download"){ + download + };; + *){ + help + };; esac - - -- 2.28.0