cleanup scripts

use git command instead of some random realpath that is not installed everywhere
This commit is contained in:
Robin Malfait
2020-09-20 20:47:39 +02:00
parent 2ddb607f8c
commit abc71184c8
3 changed files with 4 additions and 10 deletions
-4
View File
@@ -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
View File
@@ -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
View File
@@ -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