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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user