Skip to content

Commit 64289d7

Browse files
committed
Fix clone command
1 parent 3b4745c commit 64289d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gem/bin/pagy

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ end
5858
arg = ARGV.shift
5959
if arg.eql?('clone')
6060
name = ARGV.shift
61-
Optimist.die("Expected APP to be in [#{apps.keys.join(', ')}]; got #{arg.inspect}") unless apps.key?(arg)
61+
Optimist.die("Expected APP to be in [#{apps.keys.join(', ')}]; got #{name.inspect}") unless apps.key?(name)
6262
if File.exist?(name)
6363
print "Do you want to overwrite the #{name.inspect} file? (y/n)> "
6464
answer = gets.chomp
6565
Optimist.die("#{name.inspect} file already present") unless answer.start_with?(/y/i)
6666
end
6767
require 'fileutils'
68-
FileUtils.cp(apps[arg], '.', verbose: true)
68+
FileUtils.cp(apps[name], '.', verbose: true)
6969
else
7070
if apps.key?(arg) # showcase env
7171
opts[:env] = 'showcase'

0 commit comments

Comments
 (0)