1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 19:09:44 +00:00

adding ability to update by key or on all keys of a specific profile

This commit is contained in:
deadc0de6
2018-10-08 21:36:12 +02:00
parent b71cbefa10
commit 2b901d5608
5 changed files with 211 additions and 30 deletions

View File

@@ -47,6 +47,7 @@ echo "RUNNING $(basename $BASH_SOURCE)"
# dotdrop directory
basedir=`mktemp -d`
dotfiles="${basedir}/dotfiles"
echo "dotdrop dir: ${basedir}"
# the dotfile
tmpd=`mktemp -d`
@@ -63,7 +64,7 @@ cd ${ddpath} | ${bin} import -c ${cfg} ${tmpd}
echo "changed" > ${token}
# update
cd ${ddpath} | ${bin} update -f -c ${cfg} ${tmpd}
cd ${ddpath} | ${bin} update -f -c ${cfg} ${tmpd} --verbose
grep 'changed' ${token} >/dev/null 2>&1