1 2 3 4 5 6 7 8 9
#!/bin/bash if [ ! -d hashes ] then mkdir hashes fi if [ ! -f "hashes/list" ] then echo 0 > hashes/list fi