Sha256: baeb0b4b152eacbf8c2ce051b5536aa80c8e0fafe98014ca2de4a853a0f6a3e9
Contents?: true
Size: 649 Bytes
Versions: 11
Compression:
Stored size: 649 Bytes
Contents
#!/usr/bin/env ruby --disable=gems lib_path = File.expand_path("../../lib", __FILE__) $LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path) ENV["SHELLPID"] ||= Process.ppid.to_s ENV["USER_PWD"] ||= Dir.pwd # Prune non-absolute paths from PATH to prevent non-deterministic behavior # i.e. If user has "." or "./bin" in their PATH # Note that this logic is duplicated in lib/shopify.rb ENV["PATH"] = ENV["PATH"].split(File::PATH_SEPARATOR).select do |p| p.start_with?("/", "~", /[A-Z]:\\/) end.join(File::PATH_SEPARATOR) $original_env = ENV.to_hash require "shopify_cli" if ENV["PRINT_LOADED_FEATURES"] puts $LOADED_FEATURES end
Version data entries
11 entries across 11 versions & 1 rubygems