Sindbad~EG File Manager

Current Path : /opt/
Upload File :
Current File : //opt/lsw-postinstall

#!/usr/bin/env bash

echo "Running lsw-postinstall scripts"

for FILE in /opt/lsw-postinstall.d/*
do
    echo "==> Running ${FILE}"

    if [ -x "${FILE}" ]
    then
        ${FILE}
        EXITCODE=$?
    else
        bash "${FILE}"
        EXITCODE=$?
    fi

    echo "==> Done Running ${FILE} with exit code ${EXITCODE}"
done

echo "All done!"

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists