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
+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