Skip to content

Commit ffa224c

Browse files
authored
Fixed compatibility issues on install script (#9)
1 parent d57edc2 commit ffa224c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

install.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
#!/bin/sh
1+
#!/usr/bin/env sh
22

3-
if [ $(which wget) == '' ]; then
3+
if ! [ -x "$(command -v wget)" ]; then
44
echo 'wget is required to install zigd'
55
exit 1
66
fi
77

88
# Setup
9-
mkdir $HOME/.zigd
10-
mkdir $HOME/.zigd/bin
9+
mkdir -p $HOME/.zigd/bin
1110

1211
# Zigd
1312
wget https://github.com/trnxdev/zigd/releases/latest/download/zigd -O $HOME/.zigd/bin/zigd

0 commit comments

Comments
 (0)