diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/lsrc.in | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/lsrc.in b/bin/lsrc.in index 1402fec..c5ad700 100755 --- a/bin/lsrc.in +++ b/bin/lsrc.in @@ -108,20 +108,20 @@ show_file() { local dotted=$5 local symlink_dirs_file_globs="$6" local dest_file="$(build_path "$dest_dir" "$file" $dotted)" + local src_file="$(file_join "$dotfiles_subdir" "$file")" + local abs_src_file="$(file_join "$dotfiles_dir" "$src_file")" + local output="$dest_file:$abs_src_file" - if echo "$DEST_STACK" | grep -vq ":$dest_file"; then - DEST_STACK="$DEST_STACK:$dest_file" - - src_file="$(file_join "$dotfiles_subdir" "$file")" - abs_src_file="$(file_join "$dotfiles_dir" "$src_file")" - output="$dest_file:$abs_src_file" - - if [ $SHOW_SIGILS -eq 1 ]; then - sigil="$(sigil_for "$src_file" "$symlink_dirs_file_globs")" - output="$output:$sigil" - fi + if [ $SHOW_SIGILS -eq 1 ]; then + sigil="$(sigil_for "$src_file" "$symlink_dirs_file_globs")" + output="$output:$sigil" + fi + if echo "$DEST_STACK:" | grep -vq ":$dest_file:"; then + DEST_STACK="$DEST_STACK:$dest_file" $PRINT "$output" + else + $VERBOSE "skipping hidden file $output" fi } |