Skip to content

Commit 3c4053a

Browse files
simbit18xiaoxiang781216
authored andcommitted
macos : fix “sed: -I or -i may not be used with stdin”
tools/Unix.mk added $(call DELFILE, .config.backup) tools/process-config.sh sed-i -> sed -i.backup
1 parent 3e605c1 commit 3c4053a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tools/Unix.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ endif
799799
$(call DELFILE, .config)
800800
$(call DELFILE, .config.old)
801801
$(call DELFILE, .config.orig)
802+
$(call DELFILE, .config.backup)
802803
$(call DELFILE, .gdbinit)
803804

804805
# Application housekeeping targets. The APPDIR variable refers to the user

tools/process_config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ process_file() {
5757
fi
5858
else
5959
local key_config="$(echo "$line" | cut -d= -f1)="
60-
sed -i "/$key_config/d" $output_file
60+
sed -i.backup "/$key_config/d" $output_file
6161
echo "$line" >> $output_file
6262
fi
6363
done < "$input_file"

0 commit comments

Comments
 (0)