mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-16 06:01:11 +00:00
Using rpartition to split attributes in import paths
This commit is contained in:
@@ -111,6 +111,29 @@ cd ${ddpath} | ${bin} files -c ${cfg} -p p1 -V
|
||||
[ "$?" = "0" ] && echo "variables" && exit 1
|
||||
set -e
|
||||
|
||||
cat > ${cfg} << _EOF
|
||||
config:
|
||||
backup: true
|
||||
create: true
|
||||
dotpath: dotfiles
|
||||
import_variables:
|
||||
- /variables/does/not/exist:with/separator
|
||||
dotfiles:
|
||||
f_abc:
|
||||
dst: ${tmpd}/abc
|
||||
src: abc
|
||||
profiles:
|
||||
p1:
|
||||
dotfiles:
|
||||
- f_abc
|
||||
_EOF
|
||||
|
||||
# dummy call
|
||||
set +e
|
||||
cd ${ddpath} | ${bin} files -c ${cfg} -p p1 -V
|
||||
[ "$?" = "0" ] && echo "variables with separator" && exit 1
|
||||
set -e
|
||||
|
||||
cat > ${cfg} << _EOF
|
||||
config:
|
||||
backup: true
|
||||
@@ -157,6 +180,29 @@ cd ${ddpath} | ${bin} files -c ${cfg} -p p1 -V
|
||||
[ "$?" = "0" ] && echo "actions" && exit 1
|
||||
set -e
|
||||
|
||||
cat > ${cfg} << _EOF
|
||||
config:
|
||||
backup: true
|
||||
create: true
|
||||
dotpath: dotfiles
|
||||
import_actions:
|
||||
- /actions/does/not:exist/with/separator
|
||||
dotfiles:
|
||||
f_abc:
|
||||
dst: ${tmpd}/abc
|
||||
src: abc
|
||||
profiles:
|
||||
p1:
|
||||
dotfiles:
|
||||
- f_abc
|
||||
_EOF
|
||||
|
||||
# dummy call
|
||||
set +e
|
||||
cd ${ddpath} | ${bin} files -c ${cfg} -p p1 -V
|
||||
[ "$?" = "0" ] && echo "actions with separator" && exit 1
|
||||
set -e
|
||||
|
||||
cat > ${cfg} << _EOF
|
||||
config:
|
||||
backup: true
|
||||
@@ -203,6 +249,29 @@ cd ${ddpath} | ${bin} files -c ${cfg} -p p1 -V
|
||||
[ "$?" = "0" ] && echo "configs" && exit 1
|
||||
set -e
|
||||
|
||||
cat > ${cfg} << _EOF
|
||||
config:
|
||||
backup: true
|
||||
create: true
|
||||
dotpath: dotfiles
|
||||
import_configs:
|
||||
- /configs/does:not/exist/with/separator
|
||||
dotfiles:
|
||||
f_abc:
|
||||
dst: ${tmpd}/abc
|
||||
src: abc
|
||||
profiles:
|
||||
p1:
|
||||
dotfiles:
|
||||
- f_abc
|
||||
_EOF
|
||||
|
||||
# dummy call
|
||||
set +e
|
||||
cd ${ddpath} | ${bin} files -c ${cfg} -p p1 -V
|
||||
[ "$?" = "0" ] && echo "configs with separator" && exit 1
|
||||
set -e
|
||||
|
||||
cat > ${cfg} << _EOF
|
||||
config:
|
||||
backup: true
|
||||
|
||||
Reference in New Issue
Block a user