Pectojin / duplicati-client

A command line client for controlling the Duplicati Server
GNU Lesser General Public License v2.1
75 stars 20 forks source link

Quick and easy fix: backwards logic in build scripts #37

Closed exscape closed 11 months ago

exscape commented 1 year ago

The platform-specific build scripts all contain the same error:

if [ ! -d "dist" ]; then
    rm -rf dist
fi

# Cleanup old build files
if [ ! -d "build" ]; then
    rm -rf build
fi

This only removes the directories when they already don't exist, so the negation operator shouldn't be there.

Pectojin commented 11 months ago

Ah, I hadn't noticed. I've fixed it in latest commit, thanks :slightly_smiling_face: