Skip to content

Commit

Permalink
Fix directory exist check
Browse files Browse the repository at this point in the history
  • Loading branch information
mushahidq authored Oct 11, 2024
1 parent 0728259 commit 49c8378
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/web5_cli/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ fi
chmod +x /tmp/$FILENAME

# Move the executable to /usr/local/bin
if [ -d "$DIRECTORY" ]; then
echo "Creating $DIRECTORY."
mkdir $DIRECTORY
if [ -d "/usr/local/bin" ]; then
echo "Creating /usr/local/bin"
mkdir /usr/local/bin
fi
sudo mv /tmp/$FILENAME /usr/local/bin/web5

# Cleanup
rm /tmp/$FILENAME
rm /tmp/$FILENAME

0 comments on commit 49c8378

Please sign in to comment.