Sha256: 0a8f1e19f4e4a7a6a1a1738d6b034d602bbf70a74437d4be7637b701cbbaaa8f

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

shellject ()
{
  local executable output shellject_exit eval_exit
  executable=$( type -P shellject );
  output=$( $executable $@ );
  shellject_exit=$?;
  if [[ $shellject_exit == 0 && "$1" == "load" && ! $@ =~ "--help" ]]; then
    eval "$output";
    eval_exit=$?
    if [[ $eval_exit != 0 ]]; then
      echo "Loading shelljection $2 FAILED";
      return $eval_exit
    fi;
  else
    if [[ $shellject_exit == 0 ]]; then
      echo "$output";
    else
      return $shellject_exit;
    fi;
  fi
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shellject-0.1.0 bash/shellject_wrapper.sh