sx: portability

This commit is contained in:
prez 2020-02-15 14:04:43 +01:00 committed by Earnestly
parent 521d3c92d0
commit d4e10c871b
1 changed files with 2 additions and 2 deletions

4
sx
View File

@ -19,8 +19,8 @@ cleanup() {
}
stty=$(stty -g)
tty=$(ps -o tty= -p $$)
tty=${tty#tty}
tty=$(tty)
tty=${tty#/dev/tty}
cfgdir=${XDG_CONFIG_HOME:-$HOME/.config}/sx
datadir=${XDG_DATA_HOME:-$HOME/.local/share}/sx