aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2024-01-23 20:27:48 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2024-01-23 20:27:48 -0500
commit13323a603edd0e4b962c361f33e71ab00d1a381d (patch)
tree4a3167548dc3e0199006960f06bb2979f791d90e
parent3026f94bccb9b2c8cd538b4070ae1e390b96ea87 (diff)
downloaddotfiles-13323a603edd0e4b962c361f33e71ab00d1a381d.tar.gz
dotfiles-13323a603edd0e4b962c361f33e71ab00d1a381d.tar.xz
Ignore X utilities on Darwin
-rwxr-xr-xinstall.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index b87822f..e4d5b64 100755
--- a/install.sh
+++ b/install.sh
@@ -35,7 +35,9 @@ for _f in bin/* ; do
setLink -s "$src" -d "$dest"
done
-if [ -n "$DISPLAY" ] && [ "$XDG_SESSION_TYPE" != "wayland" ] ; then
+if [ "$(uname)" != "Darwin" ] \
+ && [ -n "$DISPLAY" ] && [ "$XDG_SESSION_TYPE" != "wayland" ] ; then
+
if ! [ -d "$HOME/x" ] ; then mkdir "$HOME/x" ; fi
for _f in x/* ; do
src="$(pwd)/$_f"