mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 08:54:16 +00:00
fix the way submodule is updated
This commit is contained in:
@@ -576,9 +576,11 @@ If you want to keep it as a submodule, simply do the following
|
|||||||
```bash
|
```bash
|
||||||
$ cd <dotfiles-directory>
|
$ cd <dotfiles-directory>
|
||||||
|
|
||||||
## get latest version
|
## get latest version of the submodule
|
||||||
$ git submodule update --init --recursive
|
$ cd dotdrop/
|
||||||
$ git submodule update --remote dotdrop
|
$ git checkout master
|
||||||
|
$ git pull
|
||||||
|
$ cd ../
|
||||||
|
|
||||||
## update the bash script wrapper
|
## update the bash script wrapper
|
||||||
$ ./dotdrop/bootstrap.sh
|
$ ./dotdrop/bootstrap.sh
|
||||||
|
|||||||
@@ -19,11 +19,17 @@ args=("$@")
|
|||||||
cur=$(dirname "$(${rl} "${0}")")
|
cur=$(dirname "$(${rl} "${0}")")
|
||||||
opwd=$(pwd)
|
opwd=$(pwd)
|
||||||
cfg="${cur}/config.yaml"
|
cfg="${cur}/config.yaml"
|
||||||
|
sub="dotdrop"
|
||||||
|
|
||||||
# pivot
|
# pivot
|
||||||
cd "${cur}" || { echo "Folder \"${cur}\" doesn't exist, aborting." && exit; }
|
cd "${cur}" || { echo "Folder \"${cur}\" doesn't exist, aborting." && exit; }
|
||||||
# init/update the submodule
|
# init/update the submodule
|
||||||
git submodule update --init --recursive
|
if [ -e ${sub} ]; then
|
||||||
|
cd dotdrop
|
||||||
|
git checkout master
|
||||||
|
git pull
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
# launch dotdrop
|
# launch dotdrop
|
||||||
PYTHONPATH=dotdrop python3 -m dotdrop.dotdrop --cfg="${cfg}" "${args[@]}"
|
PYTHONPATH=dotdrop python3 -m dotdrop.dotdrop --cfg="${cfg}" "${args[@]}"
|
||||||
# pivot back
|
# pivot back
|
||||||
|
|||||||
@@ -20,8 +20,9 @@ the way it needs to be called has slightly changed.
|
|||||||
If you want to keep it as a submodule (recommended), simply do the following:
|
If you want to keep it as a submodule (recommended), simply do the following:
|
||||||
|
|
||||||
First get the latest version of dotdrop:
|
First get the latest version of dotdrop:
|
||||||
$ git submodule update --init --recursive
|
$ cd dotdrop
|
||||||
$ git submodule update --remote dotdrop
|
$ git checkout master
|
||||||
|
$ git pull
|
||||||
And then re-run the bootstrap script to update \"dotdrop.sh\":
|
And then re-run the bootstrap script to update \"dotdrop.sh\":
|
||||||
$ ./dotdrop/bootstrap.sh
|
$ ./dotdrop/bootstrap.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user