Commit 9d065ceb authored by Tinu Weber's avatar Tinu Weber

repkg: Fix file path for existence check in rename-file

parent 91054d67
......@@ -292,7 +292,7 @@ rule_rename_file()
# Check destination:
test ! -e "$file_name_new" \
test ! -e ".$file_name_new" \
|| die_rule '%s: file already exists' "$file_name_new"
test -d ".$(dirname "$file_name_new")" \
|| die_rule '%s: no such directory' "$(dirname "$file_name_new")"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment