diff --git a/tools/make_package.py b/tools/make_package.py index efdf2a5cf..ce8c6cec5 100644 --- a/tools/make_package.py +++ b/tools/make_package.py @@ -104,7 +104,7 @@ def build_on_remote_host(self): "mkdir -p ~/build/", "rm -rf ~/build/pfsense-api", "git clone https://github.com/jaredhendrickson13/pfsense-api.git ~/build/pfsense-api/", - "git -C ~/build/pfsense-api checkout " + self.args.branch, + f"git -C ~/build/pfsense-api checkout '{self.args.branch}'", "composer install --working-dir ~/build/pfsense-api", "rm -rf ~/build/pfsense-api/vendor/composer && rm ~/build/pfsense-api/vendor/autoload.php", "cp -r ~/build/pfsense-api/vendor/* ~/build/pfsense-api/pfSense-pkg-API/files/etc/inc/",