Skip to content

Commit

Permalink
Install script fixes:
Browse files Browse the repository at this point in the history
* Prefix HOME variable to correctly get the users home path
* Prevent whitespace issues by quoting the users home path variable

Reference: #143 (comment)
  • Loading branch information
Lucki authored and ifl0w committed Feb 11, 2024
1 parent ff3f8b9 commit f86e308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

datahome="${XDG_DATA_HOME:-HOME/.local/share}"
datahome="${XDG_DATA_HOME:-$HOME/.local/share}"

extensionFolder="[email protected]"
sourcepath="$PWD/$extensionFolder"
Expand All @@ -11,7 +11,7 @@ if [ "$1" = "uninstall" ]; then
rm "$targetpath/$extensionFolder"
else
echo "# Making extension directory"
mkdir -p $targetpath
mkdir -p "$targetpath"
echo "# Linking extension folder"
ln -s "$sourcepath" "$targetpath"
fi

0 comments on commit f86e308

Please sign in to comment.