Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
yujingz committed Aug 21, 2024
1 parent 0e2065b commit 7abb541
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/watch-and-upload/watch-and-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ get_current_record_id() {
# 处理新文件
process_file() {
local file="$1"
# 规范化文件路径,移除多余的斜杠
file=$(realpath -s "$file")
[ ! -f "$file" ] && return

Expand Down Expand Up @@ -142,7 +141,6 @@ main() {
-e "/sed.*\.tmp$" \
"$WATCH_DIR" | while read -d "" event; do

# 规范化事件路径,移除多余的斜杠
event=$(realpath -s "$event")
echo "$event"
if [ -f "$event" ] && [[ "$(basename "$event")" != .* ]]; then
Expand Down

0 comments on commit 7abb541

Please sign in to comment.