Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DigiGov-OSS
AuditRecordDB
Commits
df916e4b
Commit
df916e4b
authored
Feb 10, 2022
by
Panagiotis Skarvelis
Browse files
fix path
parent
5dbde101
Changes
1
Hide whitespace changes
Inline
Side-by-side
fixOptionalDepentecies.sh
View file @
df916e4b
#!/bin/bash
#Used at post-installation to create fake modules if optionalDepenetdencies are not installed
NPMROOT
=
`
npm root
`
[[
!
-f
${
NPMROOT
%%node_modules*
}
/pg-native/index.js
]]
&&
bash
-c
"mkdir -p
${
NPMROOT
}
/pg-native && touch
${
NPMROOT
}
/pg-native/index.js"
||
exit
0
PGNATIVEPATH
=
${
NPMROOT
%%node_modules*
}
node_modules/pg-native
echo
"check
$PGNATIVEPATH
for existance"
[[
!
-f
$PGNATIVEPATH
/index.js
]]
&&
bash
-c
"mkdir -p
${
PGNATIVEPATH
}
&& touch
${
PGNATIVEPATH
}
/index.js"
&&
echo
"
${
PGNATIVEPATH
}
created"
||
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment