k3s/hack/lib
Ismo Puustinen 1e34d9df7d hack/lib/util.sh: replace sed with bash replace.
Test script:

  #!/bin/bash

  rev1="foo"
  rev2="\"bar\""
  rev3="'bar'"

  newrev1="${rev1//[\'\"]}"
  newrev2="${rev2//[\'\"]}"
  newrev3="${rev3//[\'\"]}"

  oldrev1=$(echo "${rev1}" | sed "s/['\"]//g")
  oldrev2=$(echo "${rev2}" | sed "s/['\"]//g")
  oldrev3=$(echo "${rev3}" | sed "s/['\"]//g")

  echo "$newrev1 vs. $oldrev1"
  echo "$newrev2 vs. $oldrev2"
  echo "$newrev3 vs. $oldrev3"

expected output:

  foo vs. foo
  bar vs. bar
  bar vs. bar
2019-03-04 23:23:20 +02:00
..
.gitattributes Capture git export-subst strings in version.sh for 'git archive' use. 2017-11-09 16:36:27 -08:00
BUILD cluster: move logging library to hack/ 2018-01-13 16:37:50 -08:00
etcd.sh change a way to pass SC2164 in etcd.sh 2019-02-24 20:26:59 +08:00
golang.sh Improved some more bash script variable definitions 2019-01-21 23:11:58 +01:00
init.sh Merge pull request #73555 from bsalamat/priority_to_ga 2019-02-22 16:14:49 -08:00
logging.sh delete all duplicate empty blanks 2019-02-23 10:28:04 +08:00
protoc.sh Improving syntax for bash scripts 2019-01-18 19:17:16 +01:00
swagger.sh Improved some more bash script variable definitions 2019-01-21 23:11:58 +01:00
test.sh Improved some more bash script variable definitions 2019-01-21 23:11:58 +01:00
util.sh hack/lib/util.sh: replace sed with bash replace. 2019-03-04 23:23:20 +02:00
version.sh log bad format git version 2018-05-22 23:49:50 +08:00