Sha256: 6b73241ad50cfd41c19ca2ced09dd958884a1cbdf5b55603f8406a86c25209a7
Contents?: true
Size: 649 Bytes
Versions: 10
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
10 entries across 10 versions & 1 rubygems