Update clone script.

This commit is contained in:
David Tomaschik
2020-07-05 12:37:38 -07:00
parent e885afbff9
commit 244c5da0e7

View File

@@ -4,6 +4,9 @@ set -ue
# Script to clone and install # Script to clone and install
# Wrapped in a function to prevent incomplete execution if download is
# interrupted
function installer_main {
if ! command -v git >/dev/null 2>&1 ; then if ! command -v git >/dev/null 2>&1 ; then
( if [ "$EUID" != 0 ] ; then ( if [ "$EUID" != 0 ] ; then
sudo apt install -y git sudo apt install -y git
@@ -16,3 +19,6 @@ git clone https://github.com/Matir/skel.git ${HOME}/.skel
${HOME}/.skel/install.sh ${HOME}/.skel/install.sh
${HOME}/.skel/install.sh packages minimal ${HOME}/.skel/install.sh packages minimal
}
installer_main