Skip to content

Commit

Permalink
[shell] bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
masquevil committed Mar 16, 2024
1 parent 274f0a5 commit 4686927
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shell/copy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
#!/bin/sh
# 复制 local/*.example.ts 到 local/*.ts

for file in src/local/*.example.ts
do
cp "$file" "${file//.example.ts/.ts}"
new_file=$(echo "$file" | sed 's/\.example\.ts/\.ts/')
cp "$file" "$new_file"
done

0 comments on commit 4686927

Please sign in to comment.