fix
This commit is contained in:
commit
2c6960884e
@ -16,6 +16,8 @@ This project is made 'like a library', so compiling is useless... :)
|
|||||||
|
|
||||||
! DO NOT CLONE THIS REPOSITORY, USE [RELEASES](https://github.com/ENDev-WHY2/WHY2-Encryption-System/releases) INSTEAD > releases, that have `(C)` in the name < !
|
! DO NOT CLONE THIS REPOSITORY, USE [RELEASES](https://github.com/ENDev-WHY2/WHY2-Encryption-System/releases) INSTEAD > releases, that have `(C)` in the name < !
|
||||||
|
|
||||||
|
Run `configure.sh` and you'll be good to go.
|
||||||
|
|
||||||
To **encrypt** text, use function `encryptText()` from file `include/encrypter.h`.
|
To **encrypt** text, use function `encryptText()` from file `include/encrypter.h`.
|
||||||
|
|
||||||
To **decrypt** text, use function `decryptText()` from file `include/decrypter.h`.
|
To **decrypt** text, use function `decryptText()` from file `include/decrypter.h`.
|
||||||
|
@ -5,13 +5,13 @@ DISTRO=$(lsb_release -is)
|
|||||||
|
|
||||||
# Get COMMAND
|
# Get COMMAND
|
||||||
if [[ $DISTRO == "Arch" ]]; then
|
if [[ $DISTRO == "Arch" ]]; then
|
||||||
COMMAND="sudo pacman -S --needed json-c"
|
COMMAND="sudo pacman -S --needed json-c && sudo pacman -S --needed curl"
|
||||||
elif [[ $DISTRO == "Ubuntu" ]] || [[ $DISTRO == "Debian" ]]; then
|
elif [[ $DISTRO == "Ubuntu" ]] || [[ $DISTRO == "Debian" ]]; then
|
||||||
COMMAND="sudo apt install libjson-c3"
|
COMMAND="sudo apt install libjson-c3 && sudo apt install curl"
|
||||||
else
|
else
|
||||||
# 'Unsupported' distro
|
# 'Unsupported' distro
|
||||||
echo "It seems you are using unsupported distribution... Don't worry, just install https://github.com/json-c/json-c and you'll be fine."
|
echo "It seems you are using unsupported distribution... Don't worry, just install https://github.com/json-c/json-c and you'll be fine."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Execute COMMAND
|
# Execute COMMAND
|
||||||
$COMMAND
|
$COMMAND
|
||||||
|
Loading…
x
Reference in New Issue
Block a user