cleanup scripts
use git command instead of some random realpath that is not installed everywhere
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
TARGET_DIR="$(pwd)"
|
||||
|
||||
# INFO: This script is always run from the individual package.
|
||||
|
||||
node="yarn node"
|
||||
tsdxArgs=()
|
||||
|
||||
|
||||
+2
-3
@@ -1,8 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SCRIPTS_DIR="$(dirname "${BASH_SOURCE[0]}")"
|
||||
ROOT_DIR="$(realpath $SCRIPTS_DIR/..)/"
|
||||
ROOT_DIR="$(git rev-parse --show-toplevel)/"
|
||||
TARGET_DIR="$(pwd)"
|
||||
RELATIVE_TARGET_DIR="${TARGET_DIR/$ROOT_DIR/}"
|
||||
|
||||
@@ -26,4 +25,4 @@ tsdxArgs+=($@)
|
||||
# Execute
|
||||
$node "$(yarn bin tsdx)" "${tsdxArgs[@]}"
|
||||
|
||||
popd > /dev/null
|
||||
popd > /dev/null
|
||||
|
||||
+2
-3
@@ -1,8 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SCRIPTS_DIR="$(dirname "${BASH_SOURCE[0]}")"
|
||||
ROOT_DIR="$(realpath $SCRIPTS_DIR/..)/"
|
||||
ROOT_DIR="$(git rev-parse --show-toplevel)/"
|
||||
TARGET_DIR="$(pwd)"
|
||||
RELATIVE_TARGET_DIR="${TARGET_DIR/$ROOT_DIR/}"
|
||||
|
||||
@@ -32,4 +31,4 @@ tsdxArgs+=($@)
|
||||
# Execute
|
||||
$node "$(yarn bin tsdx)" "${tsdxArgs[@]}"
|
||||
|
||||
popd > /dev/null
|
||||
popd > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user