Skip to content

Commit cf2f07c

Browse files
authored
Update gef.sh
1 parent 55a7524 commit cf2f07c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/gef.sh

+4-5
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ elif [ $curl_found -eq 1 ]; then
3434
curl --silent --location --output "${HOME}/.gef-${tag}.py" "https://github.com/hugsy/gef/raw/${tag}/gef.py"
3535
fi
3636

37-
if [ -f "${HOME}/.gef-${tag}.py}" ]; then
38-
# Create the new gdbinit
37+
if [ -f "${HOME}/.gef-${tag}.py" ]; then
3938
echo "source ~/.gef-${tag}.py" > ~/.gdbinit
4039
exit 0
40+
else
41+
echo "GEF was not properly downloaded"
42+
exit 1
4143
fi
42-
43-
echo "GEF was not properly downloaded"
44-
exit 1

0 commit comments

Comments
 (0)