Skip to content

Commit

Permalink
corect uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza787b committed Aug 26, 2024
1 parent cd91768 commit fa434bf
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions setup/setup_px4_sitl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,17 @@ elif [[ "$1" == "$UNINSTALL_FLAG" ]]; then
else
echo "Global command not found."
fi
if [ -L "$CLONE_PATH" ]; then
sudo rm -rf "$CLONE_PATH"
echo "Removed PX4-Autopilot-Me Cloned Repository."
if [ -d "$CLONE_PATH" ]; then
sudo rm -rf "$CLONE_PATH" 2>&1 | tee -a delete_log.txt
echo "Removed PX4-Autopilot-Me Cloned Repository at $CLONE_PATH."
else
echo "PX4-Autopilot-Me Cloned Repository not found at $CLONE_PATH."
fi
if [ -L "$CONFIG_FILE" ]; then
rm "$CONFIG_FILE"
if [ -e "$CONFIG_FILE" ]; then
rm "$CONFIG_FILE" 2>&1 | tee -a delete_log.txt
echo "Removed px4sitl_config file."
else
echo "px4sitl_config file not found at $CONFIG_FILE."
fi
fi

Expand Down

0 comments on commit fa434bf

Please sign in to comment.