bash script for lock