Skip to content

Commit 7a1173b

Browse files
committed
Fixes the sed on OSX
1 parent be0d1ac commit 7a1173b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

prod-yolean.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@ function annotate {
99
key=$1
1010
value=$2
1111
file=$3
12-
sed -i "s| annotations:| annotations:\n ${ANNOTATION_PREFIX}$key: '$value'|" $file
12+
case $(uname) in
13+
Darwin*)
14+
sed -i '' 's| annotations:| annotations:\
15+
--next-annotation--|' $file
16+
sed -i '' "s|--next-annotation--|${ANNOTATION_PREFIX}$key: '$value'|" $file
17+
;;
18+
*)
19+
sed -i "s| annotations:| annotations:\n ${ANNOTATION_PREFIX}$key: '$value'|" $file
20+
;;
21+
esac
1322
}
1423

1524
git fetch

0 commit comments

Comments
 (0)