mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
atom cli uses open and adds --executed-from argument
This commit is contained in:
3
Rakefile
3
Rakefile
@@ -51,8 +51,7 @@ task :install => :build do
|
||||
usr_bin_exists = ENV["PATH"].split(":").include?(usr_bin)
|
||||
if usr_bin_exists
|
||||
cli_path = "#{usr_bin}/atom"
|
||||
`echo '#!/bin/sh\nopen #{path.strip} --args $@' > #{cli_path} && chmod 755 #{cli_path}`
|
||||
# `echo '#!/bin/sh\n#{path}/Contents/MacOS/Atom $@' > #{cli_path} && chmod 755 #{cli_path}`
|
||||
`echo '#!/bin/sh\nopen #{path} -n --args "--executed-from" "$(pwd)" $@' > #{cli_path} && chmod 755 #{cli_path}`
|
||||
else
|
||||
stderr.puts "ERROR: Did not add cli tool for `atom` because /usr/local/bin does not exist"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user