sx: portability
This commit is contained in:
parent
521d3c92d0
commit
d4e10c871b
4
sx
4
sx
|
@ -19,8 +19,8 @@ cleanup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
stty=$(stty -g)
|
stty=$(stty -g)
|
||||||
tty=$(ps -o tty= -p $$)
|
tty=$(tty)
|
||||||
tty=${tty#tty}
|
tty=${tty#/dev/tty}
|
||||||
|
|
||||||
cfgdir=${XDG_CONFIG_HOME:-$HOME/.config}/sx
|
cfgdir=${XDG_CONFIG_HOME:-$HOME/.config}/sx
|
||||||
datadir=${XDG_DATA_HOME:-$HOME/.local/share}/sx
|
datadir=${XDG_DATA_HOME:-$HOME/.local/share}/sx
|
||||||
|
|
Loading…
Reference in New Issue