Skip to content

Commit b43e379

Browse files
committed
feat: improve installation script to support development mode and cleanup
1 parent 1b5fef3 commit b43e379

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

install

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
#!/bin/sh
22

33
_IS_DEV=false
4-
_BIN=$HOME/.debuno/bin/debuno
54
_DENO_BIN=$HOME/.deno/bin/debuno
65

76
_BASE=$(dirname $(realpath $0))
87
_INSTALL_DIR=$HOME/.debuno
98

9+
rm -rf $_INSTALL_DIR
10+
1011
if [ -d $_BASE/.git ]; then
1112
_IS_DEV=true
1213
_INSTALL_DIR=$_BASE
1314

1415
echo "Installing debuno in dev mode..."
16+
echo "INSTALL_DIR: $_INSTALL_DIR"
1517
else
1618
echo "Installing debuno..."
17-
git clone https://github.com/serebano/debuno.git $HOME/.debuno
19+
echo "INSTALL_DIR: $_INSTALL_DIR"
20+
git clone https://github.com/serebano/debuno.git $_INSTALL_DIR
1821
fi
1922

2023
_BIN_DIR=$_INSTALL_DIR/bin
21-
_EXE=$_BIN_DIR/debuno
24+
_BIN=$_BIN_DIR/debuno
2225

2326
if [ -L $_DENO_BIN ];
2427
then rm $_DENO_BIN; fi

0 commit comments

Comments
 (0)