Modifying test.sh script to update dynamically resources.