Skip to content
Snippets Groups Projects
Commit b2afbfd4 authored by Smaine Kahlouch's avatar Smaine Kahlouch
Browse files

don't touch if the file exists

parent ab694ee2
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,10 @@ token_file="${token_dir}/known_tokens.csv"
create_accounts=($@)
if [ ! -e "${token_file}" ]; then
touch "${token_file}"
fi
for account in "${create_accounts[@]}"; do
if grep ",${account}," "${token_file}" ; then
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment