rbbt-util 5.37.11 → 5.37.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 797cec21ce0cb27977436e799e5e58b291a0003bc31a73637948ba93e9523dc6
4
- data.tar.gz: 0aad818af111e8b3cb45a35a4aa7ceae7d10951c37ff727a5e9ed6a2ba8014f6
3
+ metadata.gz: e76095e04cadd3c15ce7ec185d11748f2e4d3ed8dd806f943b1383fdfb46aa5d
4
+ data.tar.gz: a73aae56ff7b6cf3272ef79ae89eb7a106fcb427e3c4fca1459d050730b004e0
5
5
  SHA512:
6
- metadata.gz: 37a3c6a8bff10b43dca94edd29909dab0c5ea2fa7fdf84dfaf31c4e95165553e933d0d77ddf8488da42376e45d41d0a176b83263d36dde3881cf2fd450c5b6f7
7
- data.tar.gz: '09ffbdd83ce3ce1f2d4eb7a12a7f22d988bfe2f95bbea7d3c25ecd3364fce359344654ce27cbc5f1c125d7b796015c0aec9a2275d3808a7eafd838152fcde2ed'
6
+ metadata.gz: f387a6477d88852da5d7a9390bae568245997199f468ba63cfad4ecc1bffe8d39c895f1ca1d82a45cc7aab73558faba325bcf2f4c25fbb1d3ce3eaca291876eb
7
+ data.tar.gz: 58715dd20beb356c4f0177cc3fa6da3794a6b620cc4de87cf3d108b2203c90320b10d48f80d302e5e59e8e29c10f1d36eff22ec05935c9cef8aac27ea05899c6
@@ -10,7 +10,7 @@ OPT_BUILD_DIR="$SOFTWARE_DIR/.build"; [ -d $OPT_BUILD_DIR ] || mkdir -p $OPT_BUI
10
10
 
11
11
  mkdir -p "$OPT_BUILD_DIR"
12
12
 
13
- if command -v realpath > /dev/null; then
13
+ if realpath --help | grep realative > /dev/null; then
14
14
  function relative_path(){
15
15
  local basedir=$1
16
16
  local path=$2
@@ -19,7 +19,6 @@ if command -v realpath > /dev/null; then
19
19
  else
20
20
  realpath(){
21
21
  OURPWD=$PWD
22
- echo "REALPATH $@" >&2
23
22
  cd "$(dirname "$1")"
24
23
  LINK=$(readlink "$(basename "$1")")
25
24
  while [ "$LINK" ]; do
@@ -28,14 +27,13 @@ else
28
27
  done
29
28
  REALPATH="$PWD/$(basename "$1")"
30
29
  cd "$OURPWD"
31
- echo "$REALPATH" >&2
32
30
  echo "$REALPATH"
33
31
  }
34
32
 
35
33
  function relative_path(){
36
34
  local basedir="$(realpath $1)"
37
35
  local path="$(realpath "$2")"
38
- echo ${path/$(dirname $basedir)\/..}
36
+ echo ${path/$(dirname $basedir)/..}
39
37
  }
40
38
  fi
41
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.37.11
4
+ version: 5.37.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez