summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-11-26 12:23:03 +0100
committerAnton Khirnov <anton@khirnov.net>2020-11-26 12:23:03 +0100
commite30949db43ba188342717792bc6783ffabf0ecf5 (patch)
tree1686ca072cbba4859305d07df3a8a896b3f03021 /install
parent94b76b2e3f178795327396ffb04dc3fc412cb507 (diff)
install: remove the dirty stamp on successful install
Diffstat (limited to 'install')
-rwxr-xr-xinstall4
1 files changed, 4 insertions, 0 deletions
diff --git a/install b/install
index ecb076f..d7c697a 100755
--- a/install
+++ b/install
@@ -30,6 +30,8 @@ BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
MACHINE_PROFILE_BIN="machine_profiles"
+DIRTY_STAMP=~/.local/var/dotfiles/dirty
+
cd "${BASEDIR}"
git submodule sync --recursive --quiet
git submodule update --init --recursive
@@ -41,3 +43,5 @@ for profile in $(${BASEDIR}/${MACHINE_PROFILE_BIN}); do
echo "Installing configuration for profile " $profile
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${profile}.conf.yaml" "${@}"
done
+
+rm -f "${DIRTY_STAMP}"