Skip to content

Commit

Permalink
macos : fix “sed: -I or -i may not be used with stdin”
Browse files Browse the repository at this point in the history
tools/Unix.mk
added $(call DELFILE, .config.backup)

tools/process-config.sh
sed-i -> sed -i.backup
  • Loading branch information
simbit18 authored and xiaoxiang781216 committed Nov 4, 2024
1 parent 3e605c1 commit 3c4053a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/Unix.mk
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ endif
$(call DELFILE, .config)
$(call DELFILE, .config.old)
$(call DELFILE, .config.orig)
$(call DELFILE, .config.backup)
$(call DELFILE, .gdbinit)

# Application housekeeping targets. The APPDIR variable refers to the user
Expand Down
2 changes: 1 addition & 1 deletion tools/process_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ process_file() {
fi
else
local key_config="$(echo "$line" | cut -d= -f1)="
sed -i "/$key_config/d" $output_file
sed -i.backup "/$key_config/d" $output_file
echo "$line" >> $output_file
fi
done < "$input_file"
Expand Down

0 comments on commit 3c4053a

Please sign in to comment.