Skip to content

Commit

Permalink
Make directory to copy files from be relative to install.rb rather th…
Browse files Browse the repository at this point in the history
…an the working directory.
  • Loading branch information
Jonathan Price committed Mar 6, 2017
1 parent 792246a commit dc457f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def ask(prompt="", newline=false)
if Dir.exist? INSTALL_LOC
# raise "~/betty already exists! Please manually remove if you want to proceed"
else
COPY_COMMAND = 'cp -rf ' + Dir.pwd + ' ' + INSTALL_LOC
COPY_COMMAND = 'cp -rf ' + File.dirname(__FILE__) + ' ' + INSTALL_LOC
print "Running `" + COPY_COMMAND + "`\n"
system COPY_COMMAND
end
Expand Down

0 comments on commit dc457f5

Please sign in to comment.