datastax / dsbulk-migrator

Apache License 2.0
8 stars 8 forks source link

Generated script shows errors with sh and also exits the shell #10

Open sync-by-unito[bot] opened 1 year ago

sync-by-unito[bot] commented 1 year ago

If I run the script with sh script.sh then I get

migrator_data_dir/cloud-gate-migrator-import.sh: 16: migrator_data_dir/cloud-gate-migrator-import.sh: [[: not found
migrator_data_dir/cloud-gate-migrator-import.sh: 24: migrator_data_dir/cloud-gate-migrator-import.sh: [[: not found
migrator_data_dir/cloud-gate-migrator-import.sh: 25: migrator_data_dir/cloud-gate-migrator-import.sh: [[: not found

But if I run it with bash script.sh everything goes smoothly.

Also, the script has exit statements so it will exit the current shell which shouldn't happen...

Manually migrated from GitHub Issue #105

┆Issue is synchronized with this Jira Task by Unito ┆Components: Schema Migrator ┆Priority: Major

sync-by-unito[bot] commented 1 year ago

➤ Wei Deng commented:

Wei Deng to fix and close