Skip to content

Commit

Permalink
test: fix shellcheck lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Martín <[email protected]>
  • Loading branch information
mmartinv committed Oct 7, 2024
1 parent fd006fe commit 649cd19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/fmf/tests/onboarding/run-onboarding.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ setup_postgresql() {
setup_sqlite() {
mkdir -p ${DATABASE_DIR}
DATABASE_FILE="${DATABASE_DIR}/fido-device-onboard.db"
> ${DATABASE_FILE}
true > ${DATABASE_FILE}
for DATABASE in ${DATABASES}; do
sqlite3 ${DATABASE_FILE} < "${MIGRATIONS_BASE_DIR}/migrations_${DATABASE}_server_sqlite/up.sql"
done
Expand Down Expand Up @@ -164,7 +164,6 @@ admin_auth_token: Va40bSkLcxwnfml1pmIuaWaOZG96mSMB6fu0xuzcueg=
device_specific_store_driver:
Directory:
path: ${STORES_DIR}/serviceinfo_api_devices
EOF
}

Expand All @@ -175,7 +174,7 @@ export_import_vouchers() {
fdo-owner-tool export-manufacturer-vouchers "http://${PRIMARY_IP}:8080" --path "${MANUFACTURER_EXPORT_DIR}"
sudo tar xvf "${MANUFACTURER_EXPORT_DIR}"/export.tar -C "${MANUFACTURER_EXPORT_DIR}"
sudo rm -rf "${MANUFACTURER_EXPORT_DIR}"/export.tar
fdo-owner-tool import-ownership-vouchers "$(tr [:upper:] [:lower:] <<< ${OV_STORE_DRIVER})" "${DATABASE_URL}" "${MANUFACTURER_EXPORT_DIR}"
fdo-owner-tool import-ownership-vouchers "$(tr "[:upper:]" "[:lower:]" <<< "${OV_STORE_DRIVER}")" "${DATABASE_URL}" "${MANUFACTURER_EXPORT_DIR}"
}

perform_no_plain_di() {
Expand Down

0 comments on commit 649cd19

Please sign in to comment.