mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 04:53:28 +02:00
Keep symbolic links when copying node_modules or we run into problems because they no longer know which module they belong to.
This commit is contained in:
@@ -28,3 +28,11 @@ indent() {
|
||||
cat_npm_debug_log() {
|
||||
test -f $build_dir/npm-debug.log && cat $build_dir/npm-debug.log
|
||||
}
|
||||
|
||||
cp_keep_links() {
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
cp -p "$@"
|
||||
else
|
||||
cp --preserve=links "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user