Skip to content

Commit ff5b1d1

Browse files
committed
Cannot access apache.org from the hook, use Github release only
1 parent d8ff461 commit ff5b1d1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.claude/setup-environment.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@ GHIDRA_GIT=$(readlink -f "${CLAUDE_PROJECT_DIR}/../ghidra")
2020
if [ ! -d "${GHIDRA_GIT}" ]; then
2121
git clone --depth 1 "https://github.com/NationalSecurityAgency/ghidra.git" "${GHIDRA_GIT}"
2222
echo "Cloned Ghidra to ${GHIDRA_GIT}"
23-
pushd "${GHIDRA_GIT}" > /dev/null
24-
echo "Fetching Ghidra Dependencies"
25-
gradle -I gradle/support/fetchDependencies.gradle
26-
gradle buildGhidra
27-
pushd "/opt" > /dev/null
28-
unzip "${GHIDRA_GIT}/build/dist/*.zip"
29-
mv ghidra_*_DEV /opt/ghidra
30-
echo "Built development Ghidra. Installed in /opt/ghidra"
31-
popd
32-
popd > /dev/null
3323
fi
3424

3525
# Install Ghidra latest
@@ -46,7 +36,7 @@ if [ ! -d "/opt/ghidra" ]; then
4636
echo "Downloading Ghidra ${GHIDRA_VERSION} from ${GHIDRA_URL}..."
4737

4838
# Download Ghidra
49-
if ! wget -q "$GHIDRA_URL" -O /tmp/ghidra.zip 2>/dev/null; then
39+
if ! curl -fsSL "$GHIDRA_URL" -o /tmp/ghidra.zip 2>/dev/null; then
5040
echo "Download of ${GHIDRA_URL} failed"
5141
exit 2
5242
fi

0 commit comments

Comments
 (0)