aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
blob: a455a936cab0fae4bd182b3d2391efffcdec0ca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

BASE_PATH=$1
SCRIPT_NAME="psx-cuegen"

mkdir -p "$BASE_PATH/bin" 2>/dev/null
ln -s $(readlink -f "$SCRIPT_NAME") $(readlink -f "$BASE_PATH/bin")
if [ $? -ne 0 ]; then
    echo "Installation failed."
    exit 1
else
    echo "Installation successful."
    exit 0
fi