Skip to content

Commit c8592b3

Browse files
committed
updating no-nexus.sh script
1 parent 27aabca commit c8592b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.githooks/no-nexus.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#! /usr/bin/env bash
22

3-
sed -i'' \
3+
gsed -i'' \
44
-e '/./{H;$!d}' \
55
-e 'x' \
66
-e 's|\[package.source\]\ntype\s*=\s*\"legacy\"\nurl\s*=\s*\"https://nexus.corp.indeed.com/repository/pypi/simple\"\nreference\s*=\s*\"nexus\"||' \
77
poetry.lock
88

9-
sed -i'' \
9+
gsed -i'' \
1010
-e '1{/^\s*$/d}' \
1111
poetry.lock
1212

13-
sed -i'' \
13+
gsed -i'' \
1414
-e '/^\s*$/N;/^\s*\n$/D' \
1515
poetry.lock
1616

0 commit comments

Comments
 (0)