#!/bin/bash if test ! -f secret_file { echo " ** creating random encryption file in ./secret_file" touch secret_file chmod 600 secret_file openssl rand -base64 512 | tr -d '\r\n' >> secret_file } else { echo " ** ./secret_file already exists" } (CommandList children: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-f)} {(secret_file)} {(Lit_Other "]")}) terminator: ) ] action: [ (C {(echo)} {(DQ (" ** creating random encryption file in ./secret_file"))}) (C {(touch)} {(secret_file)}) (C {(chmod)} {(600)} {(secret_file)}) (Pipeline children: [ (C {(openssl)} {(rand)} {(-base64)} {(512)}) (SimpleCommand words: [{(tr)} {(-d)} {(SQ <"\\r\\n">)}] redirects: [(Redir op_id:Redir_DGreat fd:-1 arg_word:{(secret_file)} spids:[57])] ) ] negated: False ) ] spids: [-1 17] ) ] else_action: [(C {(echo)} {(DQ (" ** ./secret_file already exists"))})] spids: [61 70] ) ] )