Article 5NEY4 decipering an install script?

decipering an install script?

by
Johannes33
from LinuxQuestions.org on (#5NEY4)
Hi,
I want to install Xmind 8. All I have is a install script and no istructions how to use it. Also I would like to know what it does before I install it.

comments:
I have openjdk 11 installed. Do I really need to install openjdk-8-jre?
Where is the program installed? I remember before I have had this program and I had problems with it and ended up installing it under my home folder to alleviate the problems. Is there a way to fix so it installs in my home folder this time as well?

script:
Code:#!/bin/bash

set -e

SCRIPT_NAME="$0"
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")" && pwd)"

echo "[setup] Installing dependencies...."
apt-get install openjdk-8-jre libgtk2.0-0 libwebkitgtk-1.0-0 lame libc6 libglib2.0-0

FONTS_DIR="$SCRIPT_DIR/fonts"
if [ -d "$FONTS_DIR" ]; then
echo "[setup] Installing custom fonts...."
mkdir -p /usr/share/fonts/truetype/xmind
rsync -av "$FONTS_DIR/" /usr/share/fonts/truetype/xmind/
fc-cache -f
else
echo "[setup] WARNING: Custom fonts for XMind are not found."
fi

echo "[setup] Done."latest?d=yIl2AUoC8zA latest?i=SZDMEWMryX8:h9ctQwi6QcM:F7zBnMy latest?i=SZDMEWMryX8:h9ctQwi6QcM:V_sGLiP latest?d=qj6IDK7rITs latest?i=SZDMEWMryX8:h9ctQwi6QcM:gIN9vFwSZDMEWMryX8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments