Replace $0 -> $_ in env

This commit is contained in:
Théophile Bastian 2018-03-26 17:57:01 +02:00
parent 461f3d3ef0
commit 18ee74e3d9
2 changed files with 5 additions and 4 deletions

6
.gitignore vendored
View file

@ -1,3 +1,3 @@
./eh_frame_check
./glibc
./venv
eh_frame_check
glibc
venv

3
env
View file

@ -1,6 +1,7 @@
#!/bin/bash
base_dir="$(dirname "$(readlink -f "$0")")"
self_name="$_" # This file will be sourced!
base_dir="$(dirname "$(readlink -f "$self_name")")"
if [ ! -d "$base_dir/glibc" ] || [ ! -d "$base_dir/eh_frame_check" ] \
|| [ ! -d "$base_dir/venv" ]; then