Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ada/ada
Original file line number Diff line number Diff line change
Expand Up @@ -1973,7 +1973,9 @@ api_call () {
mv )
# dCache may overwrite an empty directory.
# If target already exists, quit.
case $(pathtype "$destination") in
# Function pathtype() produces an error message if the target
# does not exist, but we don't care, so we throw it away.
case $(pathtype "$destination" 2> /dev/null) in
DIR | REGULAR | LINK )
echo 1>&2 "ERROR: target '$destination' already exists."
exit 1
Expand Down