]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Update submodules, error provision if no file
authorRuben Beltran del Rio <redacted>
Mon, 28 Jun 2021 18:44:58 +0000 (20:44 +0200)
committerRuben Beltran del Rio <redacted>
Mon, 28 Jun 2021 18:44:58 +0000 (20:44 +0200)
install [moved from install_dotfiles with 94% similarity]
provision

similarity index 94%
rename from install_dotfiles
rename to install
index f9b8a50db976d2f3abc532dd55e266f9b2d2fca6..90704af2882f09762be02b136c9d680f5542497c 100755 (executable)
+++ b/install
@@ -4,6 +4,10 @@ echo "Installing essential software"
 
 ./provision essential
 
 
 ./provision essential
 
+echo "Updating submodules"
+
+git submodule update --init --recursive
+
 echo "Linking runcoms"
 
 # hush login
 echo "Linking runcoms"
 
 # hush login
index d36cced1b141e9f9e55e1cee920d49561d0215d9..1580c24b7a47aa9315b4bd92d7de0c42ed6ffef5 100755 (executable)
--- a/provision
+++ b/provision
@@ -19,5 +19,6 @@ else
     cat ./provisioning/${command_name}_$1 | xargs ${command_name} install
   else
     echo "No provisioning recipe for $1 with $command_name"
     cat ./provisioning/${command_name}_$1 | xargs ${command_name} install
   else
     echo "No provisioning recipe for $1 with $command_name"
+    exit 1
   fi
 fi
   fi
 fi