From 0a156bd711eba68159353ceb6303ee38135ba8a9 Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Fri, 4 Nov 2022 10:43:08 +0100 Subject: [PATCH] Updates one command-liner Apparently PAM does not like nested scripts. --- README.md | 2 +- update.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e3d3dc2..2c0755e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ You can install this configuration on a new system using ```bash -curl -sSL https://git.tuleu.science/atuleu/home/raw/branch/master/update.sh | bash +curl -sSL https://git.tuleu.science/atuleu/home/raw/branch/master/update.sh | bash && $HOME/.home/update.sh ``` ## Keeping it synced diff --git a/update.sh b/update.sh index 59fce31..3c814da 100755 --- a/update.sh +++ b/update.sh @@ -260,12 +260,11 @@ function update_repos() { run_git submodule update } -if [ ! -d "$HOME/.home" ] +if [ -z $BASH_SOURCE ] && [ ! -d "$HOME/.home" ] then echo "--- cloning git.tuleu.science:atuleu/home.git in $HOME/.home" pushd $HOME 1>/dev/null run_git clone https://git.tuleu.science/atuleu/home.git .home - .home/update.sh "$@" popd 1>/dev/null else update_home