From e82e358b28f48ed2304394f698d87830e19a1ecf Mon Sep 17 00:00:00 2001 From: Aleksei Lebedev <1329824+LastDragon-ru@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:16:21 +0400 Subject: [PATCH] Examples can be run from any directory. --- packages/formatter/docs/Examples/Usage.run | 2 +- packages/graphql-printer/docs/Examples/Filtering.run | 2 +- packages/graphql-printer/docs/Examples/Usage.run | 2 +- packages/graphql/docs/Examples/Printer.run | 2 +- packages/serializer/docs/Examples/AsSerializable.run | 2 +- packages/serializer/docs/Examples/Usage.run | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/formatter/docs/Examples/Usage.run b/packages/formatter/docs/Examples/Usage.run index e4d70a7fb..aefd0de01 100755 --- a/packages/formatter/docs/Examples/Usage.run +++ b/packages/formatter/docs/Examples/Usage.run @@ -1,3 +1,3 @@ #!/usr/bin/env bash -../../dev/artisan dev:example "${BASH_SOURCE[0]%.*}.php" +"${BASH_SOURCE%/*}/../../../../dev/artisan" dev:example "${BASH_SOURCE%.*}.php" diff --git a/packages/graphql-printer/docs/Examples/Filtering.run b/packages/graphql-printer/docs/Examples/Filtering.run index e4d70a7fb..aefd0de01 100755 --- a/packages/graphql-printer/docs/Examples/Filtering.run +++ b/packages/graphql-printer/docs/Examples/Filtering.run @@ -1,3 +1,3 @@ #!/usr/bin/env bash -../../dev/artisan dev:example "${BASH_SOURCE[0]%.*}.php" +"${BASH_SOURCE%/*}/../../../../dev/artisan" dev:example "${BASH_SOURCE%.*}.php" diff --git a/packages/graphql-printer/docs/Examples/Usage.run b/packages/graphql-printer/docs/Examples/Usage.run index e4d70a7fb..aefd0de01 100755 --- a/packages/graphql-printer/docs/Examples/Usage.run +++ b/packages/graphql-printer/docs/Examples/Usage.run @@ -1,3 +1,3 @@ #!/usr/bin/env bash -../../dev/artisan dev:example "${BASH_SOURCE[0]%.*}.php" +"${BASH_SOURCE%/*}/../../../../dev/artisan" dev:example "${BASH_SOURCE%.*}.php" diff --git a/packages/graphql/docs/Examples/Printer.run b/packages/graphql/docs/Examples/Printer.run index e4d70a7fb..aefd0de01 100755 --- a/packages/graphql/docs/Examples/Printer.run +++ b/packages/graphql/docs/Examples/Printer.run @@ -1,3 +1,3 @@ #!/usr/bin/env bash -../../dev/artisan dev:example "${BASH_SOURCE[0]%.*}.php" +"${BASH_SOURCE%/*}/../../../../dev/artisan" dev:example "${BASH_SOURCE%.*}.php" diff --git a/packages/serializer/docs/Examples/AsSerializable.run b/packages/serializer/docs/Examples/AsSerializable.run index e4d70a7fb..aefd0de01 100755 --- a/packages/serializer/docs/Examples/AsSerializable.run +++ b/packages/serializer/docs/Examples/AsSerializable.run @@ -1,3 +1,3 @@ #!/usr/bin/env bash -../../dev/artisan dev:example "${BASH_SOURCE[0]%.*}.php" +"${BASH_SOURCE%/*}/../../../../dev/artisan" dev:example "${BASH_SOURCE%.*}.php" diff --git a/packages/serializer/docs/Examples/Usage.run b/packages/serializer/docs/Examples/Usage.run index e4d70a7fb..aefd0de01 100755 --- a/packages/serializer/docs/Examples/Usage.run +++ b/packages/serializer/docs/Examples/Usage.run @@ -1,3 +1,3 @@ #!/usr/bin/env bash -../../dev/artisan dev:example "${BASH_SOURCE[0]%.*}.php" +"${BASH_SOURCE%/*}/../../../../dev/artisan" dev:example "${BASH_SOURCE%.*}.php"