Skip to content

Commit 78dc347

Browse files
authored
make add position independent (#32)
1 parent 4a8b202 commit 78dc347

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

add

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/bash
2-
cd "$(dirname "$0")"
32
if [[ $# != 1 ]]; then
43
echo >&2 "Usage: $0 libc_filename"
54
exit 2
65
fi
6+
libc="$(readlink -f "$1")"
7+
cd "$(dirname "$0")"
78

89
. common/libc.sh
910

1011
requirements_general || die "General requirements are not met. Please, refer to README.md for installation instructions"
1112
requirements_local || die "Requirements for index a local libc are not met. Please, refer to README.md for installation instructions"
12-
add_local $1
13+
add_local "$libc"

0 commit comments

Comments
 (0)