From 40fd8aebe6772cf20f5ed55ba3561b315c0de859 Mon Sep 17 00:00:00 2001 From: mapperr Date: Thu, 24 Oct 2019 19:59:25 +0200 Subject: [PATCH] Handle missing default/secret dirs in untracking --- dfl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dfl b/dfl index 1b870ae..35f2acf 100755 --- a/dfl +++ b/dfl @@ -97,7 +97,9 @@ process_deleted_files() { local found="false" for directory in "$default_profile_name" "$secrets_profile_name" "$profile_dir"; do test -z "$directory" && continue - local filepath="$dotfiles_dir_abs/$directory/$tracked_file_relative" + local directory_abs="$dotfiles_dir_abs/$directory" + test ! -d $directory_abs && continue + local filepath="$directory_abs/$tracked_file_relative" logd "checking if file [$filepath] exists" if [ -f "$filepath" ]; then logd "found [$filepath]" -- 2.45.2