Skip to content

Commit b96f9cd

Browse files
committed
Add missing FreeBSD update URL
1 parent e612d55 commit b96f9cd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PSMTUpdate.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -euo pipefail
33

44
URL_LINUX="https://raw.githubusercontent.com/SvenGDK/PS-Multi-Tools/main/LinuxUpdate.zip"
55
URL_MAC="https://raw.githubusercontent.com/SvenGDK/PS-Multi-Tools/main/macOSUpdate.zip"
6+
URL_FREEBSD="https://raw.githubusercontent.com/SvenGDK/PS-Multi-Tools/main/FreeBSDUpdate.zip"
67
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
78

89
OS="$(uname -s)"
@@ -15,16 +16,16 @@ esac
1516

1617
if [ "$PLATFORM" = "macos" ]; then
1718
URL="$URL_MAC"
19+
elif [ "$PLATFORM" = "freebsd" ]; then
20+
URL="$URL_FREEBSD"
1821
else
1922
URL="$URL_LINUX"
2023
fi
2124

2225
if [ "$PLATFORM" = "linux" ]; then
2326
TMP_ZIP="$(mktemp --tmpdir linuxupdate.XXXXXX)"
24-
elif [ "$PLATFORM" = "macos" ]; then
27+
elif [ "$PLATFORM" = "macos" ] || [ "$PLATFORM" = "freebsd" ]; then
2528
TMP_ZIP="$(mktemp -t linuxupdate)"
26-
elif [ "$PLATFORM" = "freebsd" ]; then
27-
TMP_ZIP="$(mktemp /tmp/linuxupdate.XXXXXX)"
2829
else
2930
TMP_ZIP="$(mktemp)"
3031
fi

0 commit comments

Comments
 (0)