fd7f3b8551
This feature was proposed by Brian Knobbs <brian@redlattice.com>.
25 lines
459 B
Bash
25 lines
459 B
Bash
test_description='link expands environment variables in target'
|
|
. '../test-lib.bash'
|
|
|
|
test_expect_success 'setup' '
|
|
echo "apple" > ${DOTFILES}/f &&
|
|
echo "grape" > ${DOTFILES}/h
|
|
'
|
|
|
|
test_expect_success 'run' '
|
|
export ORANGE=".config" &&
|
|
export BANANA="g" &&
|
|
unset PEAR &&
|
|
run_dotbot <<EOF
|
|
- link:
|
|
~/\${ORANGE}/\$BANANA:
|
|
path: f
|
|
create: true
|
|
~/\$PEAR: h
|
|
EOF
|
|
'
|
|
|
|
test_expect_success 'test' '
|
|
grep "apple" ~/.config/g &&
|
|
grep "grape" ~/\$PEAR
|
|
'
|