Skip to content

Commit

Permalink
Examples can be run from any directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
LastDragon-ru committed Oct 31, 2023
1 parent 8b370e1 commit e82e358
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/formatter/docs/Examples/Usage.run
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion packages/graphql-printer/docs/Examples/Filtering.run
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion packages/graphql-printer/docs/Examples/Usage.run
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion packages/graphql/docs/Examples/Printer.run
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion packages/serializer/docs/Examples/AsSerializable.run
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion packages/serializer/docs/Examples/Usage.run
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit e82e358

Please sign in to comment.