mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Fix argument that cannot be sent to bash via env
/usr/bin/env seems to have problems with arguments to bash on some platforms. To bypass this, use set -e instead.
This commit is contained in:
parent
398e963312
commit
6938692ca2
15 changed files with 32 additions and 16 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
abs_dirname() {
|
||||
local cwd="$(pwd)"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
shopt -s nullglob
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
RBENV_COMMAND="$1"
|
||||
if [ -z "$RBENV_COMMAND" ]; then
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
print_set_version() {
|
||||
echo "<version> should be a string matching a Ruby version known by rbenv."
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
print=""
|
||||
if [ "$1" = "-" ]; then
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
RBENV_VERSION="$1"
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
create_prototype_shim() {
|
||||
cat > .rbenv-shim <<SH
|
||||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
exec rbenv exec "\${0##*/}" "\$@"
|
||||
SH
|
||||
chmod +x .rbenv-shim
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
RBENV_VERSION="$1"
|
||||
if [ -z "$RBENV_VERSION" ]; then
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
RBENV_VERSION="$1"
|
||||
if [ -z "$RBENV_VERSION" ]; then
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
echo "$(rbenv-version-name) (set by $(rbenv-version-origin))"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
read_version_file() {
|
||||
egrep -m 1 '[^[:space:]]' "$1"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
find_version_file() {
|
||||
local root="$(pwd)"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
RBENV_VERSION_NAME="$(rbenv-version-name)"
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
if [ "$1" = "--path" ]; then
|
||||
print_paths="1"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
expand_path() {
|
||||
local cwd="$(pwd)"
|
||||
|
|
Loading…
Reference in a new issue