fix: ensure install directory exists before copying binary

addresses #311 - installer was trying to copy pulse binary before creating /opt/pulse directory
This commit is contained in:
Pulse Monitor
2025-08-14 14:09:43 +00:00
parent 9e1ea6c303
commit 4018ec53d9
+3
View File
@@ -197,6 +197,9 @@ download_pulse() {
mkdir -p "$TEMP_EXTRACT"
tar -xzf pulse.tar.gz -C "$TEMP_EXTRACT"
# Ensure install directory exists before copying
mkdir -p "$INSTALL_DIR"
# Copy Pulse binary from bin/ directory (standard structure as of v4.3.1)
if [[ -f "$TEMP_EXTRACT/bin/pulse" ]]; then
cp "$TEMP_EXTRACT/bin/pulse" "$INSTALL_DIR/pulse"