When piping the script to bash (cat ./environment_check.sh | bash), the part after `kubectl exec -i` will be interpreted as the input for the command inside kubectl exec command. As the result, the env check script doesn't perform the steps after that kubectl exec command. Removing the `-i` flag fixed the issue. Also, replacing `kubectl exec -t` by `kubectl exec` because the input of kubectl exec command is not a terminal device longhorn-5653 Signed-off-by: Phan Le <phan.le@suse.com> |
||
---|---|---|
.. | ||
cleanup.sh | ||
environment_check.sh | ||
generate-longhorn-yaml.sh | ||
lhexec | ||
load-images.sh | ||
longhorn_rancher_chart_migration.sh | ||
migrate-for-pre-070-volumes.sh | ||
restore-backup-to-file.sh | ||
save-images.sh | ||
update-manifests-dev-version.sh |