#!/bin/bash

####
## Adding path to PATH env
####

echo "===== sysTools installation ====="

CMD=/opt/sysTools/cmd

if [ -d /etc/paths.d ]; then # Mac Os Path predefs
	echo $CMD >> /etc/paths.d/sysTools
elif [ -d /etc/profile.d ]; then # Debian Path predefs
	echo $CMD >> /etc/profile.d/sysTools
fi

if [ -f /etc/profile.d/sysTools ] || [ -f /etc/paths.d/sysTools ]; then
	echo "===== Add PATH to PATH env ====="
else
	echo "===== Fail to add PATH env ====="
fi


#!/bin/bash

####
## Adding path to PATH env
####

echo "===== sysTools installation ====="

CMD="PATH="PATH:/opt/sysTools/cmd"; export PATH"

if [ -d /etc/profile.d ]; then # Debian Path predefs
	echo $CMD >> /etc/profile.d/sysTools.sh
fi

if [ -f /etc/profile.d/sysTools ] || [ -f /etc/paths.d/sysTools ]; then
	echo "===== Success to add PATH env ====="
else
	echo "===== Fail to add PATH env ====="
fi


Fix way to add path
Fix way to add path
