konsole icon indicating copy to clipboard operation
konsole copied to clipboard

install.sh error: XDG_DATA_HOME: unbound variable

Open paidhi opened this issue 1 year ago • 1 comments

The install.sh script is checking if the environment variable XDG_DATA_HOME is set:

if [ -z "$XDG_DATA_HOME" ]; then
  LOCAL_INSTALL_DIR=~/.local/share/konsole
else
  LOCAL_INSTALL_DIR="${XDG_DATA_HOME}/konsole"
fi

But the script also does set -o nounset. This seems to be mutually exclusive. The script does not run but displays an error:

$ ./install.sh
./install.sh: line 106: XDG_DATA_HOME: unbound variable

I guess the nounset options needs to be removed.

paidhi avatar Aug 29 '24 16:08 paidhi