diff options
author | Alexey Neyman <stilor@att.net> | 2017-02-27 22:16:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-27 22:16:59 (GMT) |
commit | 1ec5e7aa3400b534264ba1c2fa3949dc6a2cca90 (patch) | |
tree | 67bf8ce9fc7b7558d39a26a0958399a3f0640baa /scripts/saveSample.sh.in | |
parent | 85ae00c1a6331d7738abb406a1eb59091c8a4535 (diff) | |
parent | b3c23b7fdb62f396d47f46d8e3908725570d4acd (diff) |
Merge pull request #618 from stilor/revert-sed-require-gnu-sed
Require GNU sed on macos
Diffstat (limited to 'scripts/saveSample.sh.in')
-rw-r--r-- | scripts/saveSample.sh.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/saveSample.sh.in b/scripts/saveSample.sh.in index cab9b7f..2e413bd 100644 --- a/scripts/saveSample.sh.in +++ b/scripts/saveSample.sh.in @@ -75,7 +75,7 @@ fi if [ -n "${CT_LIBC_UCLIBC_CONFIG_FILE}" ]; then # We save the file, and then point the saved sample to this file CT_DoAddFileToSample "${CT_LIBC_UCLIBC_CONFIG_FILE}" "${samp_dir}/${CT_LIBC}-${CT_LIBC_VERSION}.config" - ${sed_r} -i -e 's|^(CT_LIBC_UCLIBC_CONFIG_FILE)=.+$|\1="'"${samp_top_dir}"'/samples/${CT_TARGET}/${CT_LIBC}-${CT_LIBC_VERSION}.config"|;' \ + "${sed}" -r -i -e 's|^(CT_LIBC_UCLIBC_CONFIG_FILE)=.+$|\1="'"${samp_top_dir}"'/samples/${CT_TARGET}/${CT_LIBC}-${CT_LIBC_VERSION}.config"|;' \ .defconfig else # remove any dangling files @@ -98,7 +98,7 @@ read -p "Reporter name [${reporter_name}]: " reporter_name read -p "Reporter URL [${reporter_url}]: " reporter_url if [ -n "${reporter_comment}" ]; then echo "Old comment:" - printf "${reporter_comment}\n" | ${sed_r} -e 's/^/ > /;' + printf "${reporter_comment}\n" | ${sed} -r -e 's/^/ > /;' fi echo "Reporter comment (Ctrl-D to finish, '.' to use previous):" reporter_comment=$(cat) |