From 18ee74e3d9826318d916f7c660e82842f2801fc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Mon, 26 Mar 2018 17:57:01 +0200 Subject: [PATCH] Replace $0 -> $_ in env --- .gitignore | 6 +++--- env | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a129079..ca4e208 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -./eh_frame_check -./glibc -./venv +eh_frame_check +glibc +venv diff --git a/env b/env index bd03a71..af1131c 100755 --- a/env +++ b/env @@ -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