sx: combine export and assignment

This commit is contained in:
Earnestly 2017-12-02 11:40:28 +00:00
parent e08bc130c0
commit a5fc2e3907
1 changed files with 1 additions and 3 deletions

4
sx
View File

@ -44,12 +44,10 @@ case $tty in
esac
cfgdir=${XDG_CONFIG_HOME:-$HOME/.config}/sx
XAUTHORITY=${XAUTHORITY:-$cfgdir/xauthority}
export XAUTHORITY=${XAUTHORITY:-$cfgdir/xauthority}
mkdir -p "$cfgdir"
touch "$XAUTHORITY"
export XAUTHORITY
trap 'cleanup "$pid"' EXIT