FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
angular.io/scripts/patch.sh at master · r4hulp/angular.io · GitHub
r4hulp
/
angular.io
Public
forked from
angular/angular.io
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
angular.io
/
scripts
/
patch.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
17 lines (13 loc) · 490 Bytes
Breadcrumbs
angular.io
/
scripts
/
patch.sh
Copy path
File metadata and controls
executable file
·
17 lines (13 loc) · 490 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!
/usr/bin/env bash
set
-e -o pipefail
TARGET=node_modules/terraform/lib/helpers/raw.js
#
Around line 282 change from/to:
#
var namespace = sourcePath.split(".")[0].split("/")
#
var namespace = sourcePath.split('.').slice(0, -1).join('.').split('/')
if
[
-e
"
$TARGET
"
]
;
then
perl -i.bak -pe
'
s/^(\s+var namespace.*split\("."\))\[0\]/\1.slice(0, -1).join(".")/
'
"
$TARGET
"
echo
"
Patched '
$TARGET
'.
"
else
echo
"
Nothing to patch. Can't find file '
$TARGET
'.
"
exit
1
;
fi
Back
|
FazBrowse Home
|
New Git URL