fix old issues
This commit is contained in:
parent
767f3fb5f2
commit
99e795d091
@ -1,20 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
|
set +x
|
||||||
printf "\
|
printf "\
|
||||||
Usage:
|
Usage:
|
||||||
%s start [window manager]
|
%s start [window manager]\n" "$argv0" >>/dev/stderr
|
||||||
" >>/dev/stderr
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
[ -n "$1" ] || usage
|
[ -n "$1" ] || usage
|
||||||
[ -z "$HOME" ] \
|
|
||||||
&& printf "No \$HOME environment variable found. This is very bad and an issue that is not caused by this script.\n" 1>&2 \
|
# assumption: $HOME contains the path to the user's home directory
|
||||||
&& exit 1 \
|
|
||||||
|| true
|
|
||||||
|
|
||||||
DISPLAYM_CONFIG="$HOME/.config/displaym"; export DISPLAYM_CONFIG
|
DISPLAYM_CONFIG="$HOME/.config/displaym"; export DISPLAYM_CONFIG
|
||||||
[ -d "$DISPLAYM_CONFIG" ] || mkdir -p "$DISPLAYM_CONFIG"
|
[ -d "$DISPLAYM_CONFIG" ] || mkdir -p "$DISPLAYM_CONFIG"
|
||||||
|
Loading…
Reference in New Issue
Block a user