mirror of
https://github.com/fleetdm/fleet
synced 2026-05-18 06:28:40 +00:00
#22571 - [X] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files) for more information. - [X] Added/updated tests - [X] Manual QA for all new/changed functionality
18 lines
No EOL
441 B
Bash
18 lines
No EOL
441 B
Bash
#!/bin/sh
|
|
|
|
package_app_name="$PACKAGE_ID"
|
|
|
|
# Make sure PACKAGE_ID is not empty.
|
|
if [[ -z "$package_app_name" ]]; then
|
|
echo "Empty PACKAGE_ID variable."
|
|
exit 1
|
|
fi
|
|
|
|
# Make sure the PACKAGE_ID doesn't have "../" or is "."
|
|
if [[ "$package_app_name" == *".."* || "$package_app_name" == "." ]]; then
|
|
echo "Invalid PACKAGE_ID value."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Removing \"/Applications/$package_app_name\"..."
|
|
rm -rf "/Applications/$package_app_name" |