File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
name := " codepropertygraph"
2
2
3
3
// parsed by project/Versions.scala, updated by updateDependencies.sh
4
- val flatgraphVersion = " 0.0.87 "
4
+ val flatgraphVersion = " 0.0.88 "
5
5
6
6
inThisBuild(
7
7
List (
Original file line number Diff line number Diff line change @@ -9,6 +9,16 @@ check_installed() {
9
9
fi
10
10
}
11
11
12
+ function sedi() {
13
+ if sed --version 2> /dev/null | grep -q ' GNU' ; then
14
+ # GNU sed does not like a second argument for -i
15
+ sed -i " $@ "
16
+ else
17
+ # but macOS (FreeBSD) sed needs it
18
+ sed -i ' ' " $@ "
19
+ fi
20
+ }
21
+
12
22
check_installed curl
13
23
14
24
# check if xmllint is installed
@@ -57,13 +67,13 @@ function update {
57
67
if [ " $NON_INTERACTIVE_OPTION " == " --non-interactive" ]
58
68
then
59
69
echo " non-interactive mode, auto-updating $NAME : $OLD_VERSION -> $VERSION "
60
- sed -i " s/$SEARCH /$REPLACE /" build.sbt
70
+ sedi " s/$SEARCH /$REPLACE /" build.sbt
61
71
else
62
72
echo " update $NAME : $OLD_VERSION -> $VERSION ? [Y/n]"
63
73
read ANSWER
64
74
if [ -z $ANSWER ] || [ " y" == $ANSWER ] || [ " Y" == $ANSWER ]
65
75
then
66
- sed -i " s/$SEARCH /$REPLACE /" build.sbt
76
+ sedi " s/$SEARCH /$REPLACE /" build.sbt
67
77
fi
68
78
fi
69
79
fi
You can’t perform that action at this time.
0 commit comments