Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Melyns authored Sep 15, 2024
1 parent efcbf20 commit 9b4c5a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion build

This file was deleted.

14 changes: 14 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Compile
gcc -o geofind geofind.c -lcurl -ljson-c

# check if the compilation was successful
if [ $? -eq 0 ]; then
# move the binary to /usr/local/bin
sudo mv geofind /usr/local/bin
echo "geofind was installed successfully."
else
echo "Compilation failed."
exit 1
fi

0 comments on commit 9b4c5a0

Please sign in to comment.