Merge commit '23fa869d86' as 'einat-ebpf'
This commit is contained in:
commit
4449cad239
9 changed files with 794 additions and 0 deletions
13
einat-ebpf/.prepare.sh
Executable file
13
einat-ebpf/.prepare.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
VERSION="$1"
|
||||
CURDIR="$2"
|
||||
BIN_PATH="$3"
|
||||
|
||||
if [ -d "$CURDIR/.git" ]; then
|
||||
config="$CURDIR/.git/config"
|
||||
else
|
||||
config="$(sed "s|^gitdir:\s*|$CURDIR/|;s|$|/config|" "$CURDIR/.git")"
|
||||
fi
|
||||
[ -n "$(sed -En '/^\[remote /{h;:top;n;/^\[/b;s,(https?://gitcode\.(com|net)),\1,;T top;H;x;s|\n\s*|: |;p;}' "$config")" ] && {
|
||||
echo -e "#!/bin/sh\necho $VERSION" > "$BIN_PATH"
|
||||
}
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue