Fix default arguments in rake `run' task
This commit is contained in:
parent
5e18dbae95
commit
5e057ebab3
4
Rakefile
4
Rakefile
@ -16,7 +16,9 @@ RSpec::Core::RakeTask.new
|
||||
|
||||
desc 'Run uhwm in a Xephyr X server'
|
||||
task :run do
|
||||
uhwm_args = ARGV.slice_after('--').to_a.last || %w[-d]
|
||||
uhwm_args = ARGV.include?('--') ?
|
||||
ARGV.slice_after('--').to_a.last :
|
||||
%w[-d]
|
||||
Tempfile.create('uhwm_xinitrc') do |xinitrc|
|
||||
xinitrc.write <<-eoh
|
||||
[ -f $HOME/.Xdefaults ] && xrdb $HOME/.Xdefaults
|
||||
|
Loading…
x
Reference in New Issue
Block a user