mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 11:11:15 -03:30
don't touch if the file exists
This commit is contained in:
@@ -19,7 +19,10 @@ token_file="${token_dir}/known_tokens.csv"
|
|||||||
|
|
||||||
create_accounts=($@)
|
create_accounts=($@)
|
||||||
|
|
||||||
touch "${token_file}"
|
if [ ! -e "${token_file}" ]; then
|
||||||
|
touch "${token_file}"
|
||||||
|
fi
|
||||||
|
|
||||||
for account in "${create_accounts[@]}"; do
|
for account in "${create_accounts[@]}"; do
|
||||||
if grep ",${account}," "${token_file}" ; then
|
if grep ",${account}," "${token_file}" ; then
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user