Skip to content

Commit

Permalink
second chance with-3
Browse files Browse the repository at this point in the history
  • Loading branch information
kgyrtkirk committed Mar 24, 2021
1 parent f0c95ad commit 447f142
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scripts/cdpd-patcher
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ patch_url="`cat $tmp | jq -r .centos7.patch_url`"
wget -nv -O $tmp "${patch_url}/${COMPONENT}-source.patch" ||
wget -nv -O $tmp "${patch_url}/dag_build/${COMPONENT}-source.patch"
git apply -p1 -C0 $tmp
git apply -p1 -C0 $tmp || git apply -3 -p1 -C0 $tmp
if [[ "$build" < "7.2.1" ]];then
sed -i "s/pig.version>0.16.0.*</pig.version>0.16.0.${build}</" pom.xml
else
Expand Down
16 changes: 16 additions & 0 deletions src/main/scripts/look_for_class
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
set -e


[ "$#" -lt 2 ] && echo -e "usage:\n $0 <dir> <classNamePattern>" && exit 1


function candidateJars() {
[ ! -d "$1" ] && echo "$1 is not a dir" >&2 && exit 1
# find "$1" -name "hive*jar" >&2
find "$1" -name "hive*jar"
}

DIR="$1"
PAT="$2"
candidateJars "$DIR" | xargs -n1 unzip -t | fgrep -f <(echo Archive:;echo "$PAT") | grep -B1 "$PAT"

0 comments on commit 447f142

Please sign in to comment.