#!/bin/bash # Test script to verify the add_git_url functionality # Source the master script to get access to its functions source /home/localuser/TSYSDevStack/CloudronStack/output/master-control-script.sh # Test adding a new URL echo "Testing add_git_url function..." add_git_url "https://github.com/testuser/testrepo" # Check the git URL list file to see if the URL was added echo "Contents of GitUrlList.txt after adding:" cat /home/localuser/TSYSDevStack/CloudronStack/collab/GitUrlList.txt # Test adding the same URL again (should not duplicate) echo "Testing adding the same URL again (should not duplicate)..." add_git_url "https://github.com/testuser/testrepo" # Add another URL for good measure echo "Testing adding a second URL..." add_git_url "https://github.com/anotheruser/anotherrepo" echo "Test completed successfully!"