umask 0022 redo mode1 MODE=$(python2 -c 'import os; print oct(os.stat("mode1").st_mode & 07777)') [ "$MODE" = "0644" ] || exit 78