25 lines
496 B
Bash
Executable file
25 lines
496 B
Bash
Executable file
#!/bin/bash
|
|
|
|
. /etc/profile
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2020-present Shanti Gilbert (https://github.com/shantigilbert)
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
|
|
|
if [[ "${UI_SERVICE}" =~ ^weston ]]
|
|
then
|
|
SHADERS='*.slang*'
|
|
else
|
|
SHADERS='*.glslp*'
|
|
fi
|
|
|
|
for dir in /tmp/shaders
|
|
do
|
|
if [ -d "${dir}" ]
|
|
then
|
|
find ${dir} -name ${SHADERS} -print0 |
|
|
while IFS= read -r -d '' line; do
|
|
echo ${line#${dir}/},
|
|
done
|
|
fi
|
|
done
|