1
0

adds install script for sourcing into PATH

This commit is contained in:
2024-11-30 22:54:44 +01:00
parent 10cfb5ffb1
commit 440fbaedc5
Executable
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
# This script adds the bin directory to PATH
#
# Usage:
# Source this script in your rc:
# source /path/to/here/install.sh
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BIN_DIR="$SCRIPT_DIR/bin"
if [ -d "$BIN_DIR" ] && [[ ":$PATH:" != *":$BIN_DIR:"* ]]; then
export PATH="$PATH:$BIN_DIR"
fi