We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fcf3ea commit 244613aCopy full SHA for 244613a
scripts/cli/lec.sh
@@ -810,12 +810,23 @@ cmd_remove() {
810
cmd_share() {
811
_checkProjectDirectory
812
813
- local exportFlag="${1}"
+ local FLAG_EXPORT=0
814
+
815
+ while [[ $# -gt 0 ]]; do
816
+ case "${1}" in
817
+ --export)
818
+ shift && FLAG_EXPORT=1
819
+ ;;
820
+ *)
821
+ shift
822
823
+ esac
824
+ done
825
826
(
827
cd "${PROJECT_DIRECTORY}" || exit
828
- if [[ "${exportFlag}" == "--export" ]]; then
829
+ if [[ "${FLAG_EXPORT}" -gt 1 ]]; then
830
_print_step "Exporting container data..."
831
832
if ! ./gradlew exportContainerData --quiet; then
0 commit comments