Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash clean-up code 2

#!/bin/bash
scratch=$(mktemp -d -t tmp.XXXXXXXXXX)
function finish {
  rm -rf "$scratch"
}
trap finish EXIT
Source by redsymbol.net #
 
PREVIOUS NEXT
Tagged: #bash #code
ADD COMMENT
Topic
Name
6+5 =