Skip to content

Commit

Permalink
Impr: Initialize XINITRC variable when not set
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Apr 1, 2023
1 parent 2823aa4 commit 4dc1f0a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ $ROOT_CMD cp -f "extra/xsetup.sh" "/etc/lemurs/xsetup.sh"
if [ $? -ne 0 ]; then exit 1; fi

# Copy over default xinitrc
if [ -f $XINITRC ]
if [ -z "${XINITRC}" ]
then
XINITRC="$HOME/.xinitrc"
fi

if [ -f "$XINITRC" ]
then
echo 'Copy over existing xinitrc'
$ROOT_CMD cp -f "$XINITRC" "/etc/lemurs/wms/xinitrc"
Expand Down

0 comments on commit 4dc1f0a

Please sign in to comment.