.xinitrc: fixed argument testing

master
Pierre Neidhardt 2013-12-29 10:09:55 +01:00
parent 09e6c85f71
commit 9bb9ae8606
1 changed files with 1 additions and 2 deletions

View File

@ -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