Update docs
This commit is contained in:
parent
3aaadc2b92
commit
760812c692
3 changed files with 24 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Configures pre commit hook for the current repos
|
||||
## Prepares the current environment:
|
||||
## - Installing dependencies
|
||||
## - Configuring git hooks
|
||||
|
||||
set -e
|
||||
|
||||
|
|
|
@ -1,9 +1,20 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
# This is a script for running `install.sh`
|
||||
# in a remote server using SSH.
|
||||
# Configure SSH_SERVER and PROJECT_ROOT variables
|
||||
# for using this script.
|
||||
|
||||
###### ATTENTION ######
|
||||
# The install.sh script has a confirmation prompt
|
||||
# because it deletes the content of the PROJECT_ROOT folder,
|
||||
# just put "yes | install.sh" to automatically confirm.
|
||||
|
||||
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
SSH_SERVER="example"
|
||||
PROJECT_ROOT=example_directory
|
||||
|
||||
SSH_REMOTE_DIR="${SSH_SERVER}:${PROJECT_ROOT}"
|
||||
|
||||
ssh "${SSH_SERVER}" "mkdir -p ${PROJECT_ROOT}"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
### This is a script for installing the latest release
|
||||
### of `scaricatore`.
|
||||
|
||||
PROJECT_ROOT=$1
|
||||
|
||||
if [ -z ${PROJECT_ROOT+x} ]; then
|
||||
|
@ -9,7 +12,13 @@ fi
|
|||
|
||||
mkdir -p "${PROJECT_ROOT}"
|
||||
cd "${PROJECT_ROOT}" || exit 1
|
||||
rm -rf ./*
|
||||
|
||||
read -p "We're about to run rm -rf ${PROJECT_ROOT}/*. Are you sure?" -n 1 -r
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
rm -rf ./*
|
||||
fi
|
||||
|
||||
wget https://git.pweapon.org/odo/dl.emersa.it/releases/download/latest/build.tar.gz
|
||||
tar -xvf build.tar.gz -C .
|
||||
rm build.tar.gz
|
||||
|
|
Loading…
Add table
Reference in a new issue