mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-24 19:56:37 +00:00
chore: symlink manifests in dependencies scripts (#935)
See: https://github.com/resin-io/etcher/pull/934#issuecomment-264862767 Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
92bc79df15
commit
bf2ff121f3
@ -56,7 +56,7 @@ if [ "$ARGV_PRODUCTION" == "true" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$ARGV_PREFIX" ]; then
|
if [ -n "$ARGV_PREFIX" ]; then
|
||||||
cp "$PWD/bower.json" "$ARGV_PREFIX"
|
ln -s "$PWD/bower.json" "$ARGV_PREFIX/bower.json"
|
||||||
pushd "$ARGV_PREFIX"
|
pushd "$ARGV_PREFIX"
|
||||||
bower install $INSTALL_OPTS
|
bower install $INSTALL_OPTS
|
||||||
popd
|
popd
|
||||||
|
@ -99,10 +99,10 @@ fi
|
|||||||
if [ -n "$ARGV_PREFIX" ]; then
|
if [ -n "$ARGV_PREFIX" ]; then
|
||||||
mkdir -p "$ARGV_PREFIX"
|
mkdir -p "$ARGV_PREFIX"
|
||||||
INSTALL_OPTS="$INSTALL_OPTS --prefix=$ARGV_PREFIX"
|
INSTALL_OPTS="$INSTALL_OPTS --prefix=$ARGV_PREFIX"
|
||||||
cp "$PWD/package.json" "$ARGV_PREFIX"
|
ln -s "$PWD/package.json" "$ARGV_PREFIX/package.json"
|
||||||
|
|
||||||
if [ -f "$PWD/npm-shrinkwrap.json" ]; then
|
if [ -f "$PWD/npm-shrinkwrap.json" ]; then
|
||||||
cp "$PWD/npm-shrinkwrap.json" "$ARGV_PREFIX"
|
ln -s "$PWD/npm-shrinkwrap.json" "$ARGV_PREFIX/npm-shrinkwrap.json"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user