Lenson commited on
Commit
53e215a
·
1 Parent(s): 4b51cd8

fix: remove incorrect skip condition for files without directory prefix

Browse files
Files changed (1) hide show
  1. .hf/setup.sh +4 -4
.hf/setup.sh CHANGED
@@ -51,8 +51,8 @@ download_from_supabase() {
51
  # Extract filename only
52
  local filename=$(basename "$remote_path")
53
 
54
- # Skip if it's a directory (no file extension)
55
- if [ -z "$filename" ] || [ "$filename" = "$remote_path" ]; then
56
  continue
57
  fi
58
 
@@ -130,8 +130,8 @@ download_from_supabase() {
130
  # Extract filename only
131
  local filename=$(basename "$remote_path")
132
 
133
- # Skip if it's a directory
134
- if [ -z "$filename" ] || [ "$filename" = "$remote_path" ]; then
135
  echo "DEBUG: Skipping $remote_path (no filename)"
136
  continue
137
  fi
 
51
  # Extract filename only
52
  local filename=$(basename "$remote_path")
53
 
54
+ # Skip empty
55
+ if [ -z "$filename" ]; then
56
  continue
57
  fi
58
 
 
130
  # Extract filename only
131
  local filename=$(basename "$remote_path")
132
 
133
+ # Skip empty
134
+ if [ -z "$filename" ]; then
135
  echo "DEBUG: Skipping $remote_path (no filename)"
136
  continue
137
  fi