.xinitrc: fixed argument testing
parent
09e6c85f71
commit
9bb9ae8606
3
.xinitrc
3
.xinitrc
|
@ -1,7 +1,6 @@
|
|||
#!/bin/sh
|
||||
################################################################################
|
||||
## XINITRC
|
||||
## 2013-10-12
|
||||
################################################################################
|
||||
|
||||
## Source environment config.
|
||||
|
@ -11,7 +10,7 @@
|
|||
## Launch session
|
||||
##==============================================================================
|
||||
|
||||
if [ -n "$(command -v $1)" ]; then
|
||||
if [ $# -eq 1 ] && command -v $1 >/dev/null; then
|
||||
exec $1
|
||||
else
|
||||
exec awesome
|
||||
|
|
Loading…
Reference in New Issue