We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a63d064 commit ae68b75Copy full SHA for ae68b75
stup
@@ -673,7 +673,8 @@ execute_rename_category()
673
fi
674
resolve_required_category
675
676
- if [ -e "$REPOSITORY_ROOT/$CATEGORY_NAME" ]; then
+ mkdir -p "$(dirname "$REPOSITORY_ROOT/$CATEGORY_NAME")"
677
+ if [ -e "$REPOSITORY_ROOT/$CATEGORY_NAME" ] && ! [ -z "$(ls -A "$REPOSITORY_ROOT/$CATEGORY_NAME")" ]; then
678
print_error "Category can't be renamed, new location in filesystem is already in use"
679
exit 1
680
0 commit comments