1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 16:49:17 +00:00

Merge pull request #181 from Maelan/master

add option to disable auto-updates
This commit is contained in:
deadc0de
2019-08-14 07:44:43 +02:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -114,7 +114,9 @@ For MacOS users, make sure to install `realpath` through homebrew
Using dotdrop as a submodule will need you to work with dotdrop by Using dotdrop as a submodule will need you to work with dotdrop by
using the generated script `dotdrop.sh` at the root using the generated script `dotdrop.sh` at the root
of your dotfiles repository. of your dotfiles repository. Note that this script updates the submodule
automatically, unless called with the environment variable `DOTDROP_AUTOUPDATE`
set to `no`.
To ease the use of dotdrop, it is recommended to add an alias to it in your To ease the use of dotdrop, it is recommended to add an alias to it in your
shell (*~/.bashrc*, *~/.zshrc*, etc) with the config file path, for example shell (*~/.bashrc*, *~/.zshrc*, etc) with the config file path, for example

View File

@@ -24,8 +24,10 @@ sub="dotdrop"
# pivot # pivot
cd "${cur}" || { echo "Directory \"${cur}\" doesn't exist, aborting." && exit 1; } cd "${cur}" || { echo "Directory \"${cur}\" doesn't exist, aborting." && exit 1; }
# init/update the submodule # init/update the submodule
git submodule update --init --recursive if [ "${DOTDROP_AUTOUPDATE-yes}" = yes ] ; then
git submodule update --remote dotdrop git submodule update --init --recursive
git submodule update --remote dotdrop
fi
# launch dotdrop # launch dotdrop
PYTHONPATH=dotdrop python3 -m dotdrop.dotdrop "${args[@]}" PYTHONPATH=dotdrop python3 -m dotdrop.dotdrop "${args[@]}"
ret="$?" ret="$?"