From 237a5ab59ee90ee46cdf16b26e59ad36f2a837a5 Mon Sep 17 00:00:00 2001 From: Akash Manohar J Date: Tue, 19 May 2015 10:44:08 +0530 Subject: [PATCH] Fix #1: Better to stick to a single common shell Referred a couple other version managers. The advantage is not having to maintain the scripts for other shells (bash comes by default everywhere I've seen). --- asdf.sh | 4 +--- bin/asdf | 2 +- bin/private/asdf-exec | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/asdf.sh b/asdf.sh index cd2748d8..0095c855 100644 --- a/asdf.sh +++ b/asdf.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env sh - -#TODO check for ${BASH_SOURCE[0]} or use $0 +#!/usr/bin/env bash current_script_path=${BASH_SOURCE[0]} asdf_dir=$(cd $(dirname $current_script_path); echo $(pwd)) diff --git a/bin/asdf b/bin/asdf index d3d55c8d..663c2dff 100755 --- a/bin/asdf +++ b/bin/asdf @@ -1,4 +1,4 @@ -#!/usr/bin/env sh -l +#!/usr/bin/env bash source $(dirname $(dirname $0))/lib/utils.sh diff --git a/bin/private/asdf-exec b/bin/private/asdf-exec index 0f8621bb..db2808f0 100755 --- a/bin/private/asdf-exec +++ b/bin/private/asdf-exec @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash source $(dirname $(dirname $(dirname $0)))/lib/utils.sh