#!/bin/bash

# Setup script for DQV/KTAC Agent
# This script sets the correct permissions for the agent scripts

echo "Setting up DQV/KTAC Agent permissions..."

# Set executable permissions for shell scripts
chmod +x build-app-bundle.sh
chmod +x Agent.app/Contents/MacOS/Agent
chmod +x start-agent.sh
chmod +x stop-agent.sh

# Verify permissions
echo "Verifying permissions:"
ls -la *.sh

echo "Setup complete! You can now run:"
echo "  ./start-agent.sh    - to start the agent"
echo "  ./stop-agent.sh     - to stop the agent"
