-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Handle wrong package path calculation for extension development
Can be reverted once https://review.typo3.org/c/Packages/TYPO3.CMS/+/85212 is merged and released.
- Loading branch information
1 parent
0fec1fc
commit d260e30
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
# shellcheck disable=SC2155,SC2059 | ||
set -e | ||
|
||
readonly artifactFile=".Build/vendor/typo3/PackageArtifact.php" | ||
readonly tempFile="$(mktemp)" | ||
|
||
CYAN="\e[36m" | ||
YELLOW="\e[43m" | ||
NC="\e[0m" | ||
|
||
printf "${YELLOW}Running script to fix invalid package path in PackageArtifact.${NC}\n" | ||
printf "${CYAN}Please remove this script once https://review.typo3.org/c/Packages/TYPO3.CMS/+/85212 is released.${NC}\n" | ||
|
||
awk '{ gsub(/packagePath";s:2:"\/\/"/, "packagePath\";s:0:\"\""); print }' "$artifactFile" > "$tempFile" \ | ||
&& mv "$tempFile" "$artifactFile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters