diff options
| -rwxr-xr-x | install.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..a455a93 --- /dev/null +++ b/install.sh @@ -0,0 +1,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 |
