-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
37 lines (32 loc) · 1.42 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
#
# ############################################################################
# Project: torctl (none)
# File...: install
# Created: Sunday, 2023/01/15 - 15:36:09
# Author.: @fbnmtz, (fabiano.matoz@gmail.com)
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Last Modified: Sunday, 2023/01/15 - 17:12:16
# Modified By..: @fbnmtz, (fabiano.matoz@gmail.com)
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Version: 0.0.2.14
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Description:
# >
# ############################################################################
# HISTORY:
#
github=https://github.com
username=fbnmtz
repo=torctl
if [ ! -d ~/bin/xSHELL ] || [ ! -L ~/bin/xSHELL ]; then
curl -sSL https://raw.githubusercontent.com/fbnmtz/shell/master/install | bash
fi
if [ ! -d ~/bin/xSHELL/packages/${repo} ] || [ ! -L ~/bin/xSHELL/packages/${repo} ]; then
# clone this repo to your '/home'
git clone "${github}/${username}/${repo}" ~/bin/xSHELL/packages/${repo} && \
# Add scripts to your system $PATH
if ! grep "\$PATH:\$HOME/bin/xSHELL/packages/${repo}" ~/.profile 1> /dev/null ; then
echo -e "\nexport PATH=\"\$PATH:\$HOME/bin/xSHELL/packages/${repo}\"" >> ~/.profile
fi
fi