Skip to content
This repository has been archived by the owner on Oct 16, 2018. It is now read-only.

Commit

Permalink
Change ARGV[1] to ARGV[0]. Ruby does not work like C, no matter how m…
Browse files Browse the repository at this point in the history
…uch I want it to.
  • Loading branch information
peterkeen committed May 22, 2012
1 parent bcab1e3 commit f6d8ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/dokuen_install_launchdaemon
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
require 'rubygems' require 'rubygems'
require 'dokuen' 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 unload -wF /Library/LaunchDaemons/#{name}")
Dokuen.sys("launchctl load -wF /Library/LaunchDaemons/#{name}") Dokuen.sys("launchctl load -wF /Library/LaunchDaemons/#{name}")

0 comments on commit f6d8ce8

Please sign in to comment.