From daf8d82e02c2bcc476932790fa25076631c4c312 Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Sun, 14 Feb 2016 22:39:48 -0500 Subject: Add functionality to create relative links This commit adds an option to the extended configuration syntax for linking files and directories. Enabling the relative option makes it so that symbolic links are created with relative paths instead of absolute paths. --- test/tests/link-relative.bash | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 test/tests/link-relative.bash (limited to 'test') diff --git a/test/tests/link-relative.bash b/test/tests/link-relative.bash new file mode 100644 index 0000000..ac55c17 --- /dev/null +++ b/test/tests/link-relative.bash @@ -0,0 +1,36 @@ +test_description='relative linking works' +. '../test-lib.bash' + +test_expect_success 'setup' ' +echo "apple" > ${DOTFILES}/f && +mkdir ${DOTFILES}/d && +echo "grape" > ${DOTFILES}/d/e +' + +test_expect_success 'run' ' +run_dotbot <