File tree Expand file tree Collapse file tree 4 files changed +243
-203
lines changed
Expand file tree Collapse file tree 4 files changed +243
-203
lines changed Original file line number Diff line number Diff line change 11# Configuration file for HyDE
22# Environment variables should be on top
33# Updated config.toml file can be found at $HOME/.local/share/hyde/config.toml
4+ "$schema" = " https://raw.githubusercontent.com/HyDE-Project/HyDE/refs/heads/master/Configs/.local/share/hyde/schema/config.toml.json"
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ Usage: $0 [options]
7373 m : no the[m]e reinstallations
7474 t : [t]est run without executing (-irst to dry run all)
7575
76- NOTE:
76+ NOTE:
7777 running without args is equivalent to -irs
7878 to ignore nvidia, run -irsn
7979
279279 " ${scrDir} /install_pst.sh"
280280fi
281281
282+
283+ # ---------------------------#
284+ # run migrations #
285+ # ---------------------------#
286+ if [ ${flg_Restore} -eq 1 ]; then
287+
288+ # migrationDir="$(realpath "$(dirname "$(realpath "$0")")/../migrations")"
289+ migrationDir=" ${scrDir} /migrations"
290+
291+ if [ ! -d " ${migrationDir} " ]; then
292+ print_log -warn " Migrations" " Directory not found: ${migrationDir} "
293+ fi
294+
295+ echo " Running migrations from: ${migrationDir} "
296+
297+ if [ -d " ${migrationDir} " ] && find " ${migrationDir} " -type f | grep -q . ; then
298+ migrationFile=$( find " ${migrationDir} " -maxdepth 1 -type f -printf ' %f\n' | sort -r | head -n 1)
299+
300+ if [[ -n " ${migrationFile} " && -f " ${migrationDir} /${migrationFile} " ]]; then
301+ echo " Found migration file: ${migrationFile} "
302+ sh " ${migrationDir} /${migrationFile} "
303+ else
304+ echo " No migration file found in ${migrationDir} . Skipping migrations."
305+ fi
306+ fi
307+
308+ fi
309+
282310# ------------------------#
283311# enable system services #
284312# ------------------------#
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ if command -v hyde-shell > /dev/null 2>&1 ; then
4+ echo " Reloading Hyde shell shaders..."
5+ hyde-shell shaders --reload
6+ fi
You can’t perform that action at this time.
0 commit comments