Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change ARGV[1] to ARGV[0]. Ruby does not work like C, no matter how m…

…uch I want it to.
  • Loading branch information...
commit f6d8ce85ca78fbd3bdbf36b50fcd250b5e7c90ba 1 parent bcab1e3
@peterkeen authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/dokuen_install_launchdaemon
View
4 bin/dokuen_install_launchdaemon
@@ -3,8 +3,8 @@
require 'rubygems'
require 'dokuen'
-name = File.basename(ARGV[1])
+name = File.basename(ARGV[0])
-Dokuen.sys("cp #{ARGV[1]} /Library/LaunchDaemons")
+Dokuen.sys("cp #{ARGV[0]} /Library/LaunchDaemons")
Dokuen.sys("launchctl unload -wF /Library/LaunchDaemons/#{name}")
Dokuen.sys("launchctl load -wF /Library/LaunchDaemons/#{name}")
Please sign in to comment.
Something went wrong with that request. Please try again.