👁 查看:scl_enabled
路径:/usr/bin/scl_enabled
大小:262 B · 修改:2021-07-27 15:14:26 · 权限:0755 · 只读
#!/usr/bin/sh
eval "SCLS=(${X_SCLS[*]})"
[ -z "$SCLS" ] && exit 1
[ -z "$*" ] && exit 0
for scl in $*; do
	FOUND=0
	for i in `seq 0 ${#SCLS[@]}`; do
		if [ "${SCLS[$i]}" == "$scl" ]; then
			FOUND=1;
			break;
		fi;
	done
	[ $FOUND == 0 ] && exit 1;
done
exit 0