~fultonbrowne/pine

pine-bootstrap: Automatically run download() if $PKG_MAN does not exist v1 PROPOSED

Leon Marz: 1
 Automatically run download() if $PKG_MAN does not exist

 1 files changed, 9 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~fultonbrowne/pine/patches/14246/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH pine-bootstrap] Automatically run download() if $PKG_MAN does not exist Export this patch

---
 bootstrap | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/bootstrap b/bootstrap
index dadc0ce..67776ec 100755
--- a/bootstrap
@@ -30,7 +30,7 @@ get_vars(){

download(){
   git clone https://github.com/kisslinux/kiss package_man
   git clone https://git.sr.ht/~fultonbrowne/pine-repos temp_repos 
   git clone https://git.sr.ht/~fultonbrowne/pine-repos temp_repos
}

clean(){
@@ -94,10 +94,18 @@ 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"){
-- 
2.28.0