#!/bin/bash FLAG_1=$1 cd /workspace rm -rf output rm -rf outputs rm -f out*.tar* rm -f out*.zip* cd * rm -rf output rm -rf outputs rm -f out*.tar* rm -f out*.zip* cd SD rm -rf output rm -rf outputs if [[ "$FLAG_1" =~ 1 ]]; then sudo rm -rf /tmp/* else find /tmp -mtime +2 -delete fi cd /workspace