|
''<(set +x; echo -n "$(cat ${config.passwordFile})"; set -x)'' |
^ The above process substitution makes cryptsetup fail when the file is empty. Just referencing the file directly works. You can easily test by touch-ing an empty file and testing with cryptsetup directly with both approaches.
Is there a reason that process substitution is used in this instance?