-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If the file doesn't exist, the autoclean was unnecessary, but it was still "successful".
- Loading branch information
1 parent
dd2c208
commit 4ee4cdf
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# Tests dfm correctly handling a file that has been unlinked behind dfm's back. | ||
set -e | ||
. "$(dirname "$0")/../helpers.sh" | ||
|
||
export HOME="$(pwd)/home" | ||
export DFM_DIR="$HOME/dfmdir" | ||
|
||
mkdir -p ~/dfmdir/files | ||
echo 'config' > ~/dfmdir/files/.bashrc | ||
|
||
dfm init --repos files | ||
dfm link | ||
|
||
rm ~/.bashrc | ||
rm ~/dfmdir/files/.bashrc | ||
dfm link | ||
dfm link # no output on second run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$ dfm init --repos files | ||
Initialized /test/home/dfmdir as a dfm directory. | ||
$ dfm link | ||
files/.bashrc -> /test/home/.bashrc | ||
$ dfm link | ||
removed .bashrc | ||
$ dfm link |