diff --git a/README.md b/README.md index b14836f..d3cf0e8 100644 --- a/README.md +++ b/README.md @@ -478,13 +478,18 @@ Also `compare` won't work on dotfiles using transformations. If used as a submodule, update it with ```bash -$ git submodule foreach git pull origin master +$ git submodule update --init --recursive +$ git submodule update --remote dotdrop +``` + +You will then need to commit the changes with +```bash $ git add dotdrop $ git commit -m 'update dotdrop' $ git push ``` -Through pypi: +Or if installed through pypi: ```bash $ sudo pip3 install dotdrop --upgrade ``` diff --git a/dotdrop.sh b/dotdrop.sh index 8dac199..1db8b11 100755 --- a/dotdrop.sh +++ b/dotdrop.sh @@ -25,6 +25,7 @@ sub="dotdrop" cd "${cur}" || { echo "Directory \"${cur}\" doesn't exist, aborting." && exit; } # init/update the submodule git submodule update --init --recursive +git submodule update --remote dotdrop # launch dotdrop PYTHONPATH=dotdrop python3 -m dotdrop.dotdrop "${args[@]}" # pivot back