[fx] Do not unconditionally exit from fx-cmd-locked

Only exit from fx-cmd-locked if the command failed.

Change-Id: I20131749e591b3651b05774a7d41d67ac9eef93f
1 file changed
tree: 2c7eee47a3953005b55e40a16d3b56227304e3db
  1. crash/
  2. dart/
  3. devshell/
  4. editors/
  5. gce/
  6. gdb/
  7. grubdisk/
  8. manifest/
  9. memory/
  10. packages/
  11. rust/
  12. sdk/
  13. style/
  14. tests/
  15. third_party/
  16. vim/
  17. youcompleteme/
  18. zsh-completion/
  19. .gitignore
  20. AUTHORS
  21. bootstrap
  22. build-qemu.sh
  23. build-zircon.sh
  24. check-gn-format
  25. colorize_logs
  26. CONTRIBUTING.md
  27. fd.py
  28. fetch-build-artifacts
  29. flog
  30. fx
  31. fx-env.sh
  32. fx-wrapper
  33. generate-intellij-config.py
  34. generate-update-source-config.py
  35. git-file-format
  36. git-file-tidy
  37. git-fuchsia-review
  38. git_utils.py
  39. gn_to_cmake.py
  40. LICENSE
  41. list-repo-targets.py
  42. MAINTAINERS
  43. PATENTS
  44. paths.py
  45. pave-prebuilt
  46. publish-package.py
  47. push-package.py
  48. README.md
  49. run-dart-action.py
  50. run-zircon-arm64
  51. run-zircon-x86
  52. start-dhcp-server.sh
  53. update-manifest.go
README.md

Scripts

This repository is for scripts useful when hacking on Fuchsia. This repository should contain scripts that perform tasks spanning multiple repositories. Scripts that only operate within a single repository should live in the relevant repository.

push-package.py

The push-package.py script pushes the files listed in the given manifests files. No checking is performed for incremental changes.

The sample command lines below can be used to build Modular and then push those files to the default device. This assumes you have already booted your device with a version of Fuchsia that contains the most recent version of all other packages. This command line uses the “system_manifest” file from each of the modular directories, such as modular, modular_dev, and modular_tests.

cd $FUCHSIA_DIR
fx build peridot:modular_all
scripts/push-package.py out/debug-x64/package/modular*/system_manifest

fx publish

fx publish will take a package from the build and create a Fuchsia package manager package from a build package. It will then add the package to a local update respository which, by default, is put at ${FUCHSIA_BUILD_DIR}/amber-files. It will also add the package content files to the update repository and name these file after their Merkle Root. If a package name is supplied to fx publish, only that package will be processed. If no name is supplied, all the packages made by the build will be included.