diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-09-19 18:21:43 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-09-19 18:21:43 -0500 |
| commit | c058edf67d703e5adc22f2953cdcdd696b969f41 (patch) | |
| tree | c174545b38f25eb7e865525af27fb8f81704d1b3 /runs-all/50-env.sh | |
| parent | 1e36cd234ce035a500e03b35e844ea7019f8fcca (diff) | |
Squashed commit of the following:
added vis plugin downloader
fixed env scripts
changed get-reqs priority
priority in runs
symlinks :>
Diffstat (limited to 'runs-all/50-env.sh')
| -rwxr-xr-x | runs-all/50-env.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/runs-all/50-env.sh b/runs-all/50-env.sh new file mode 100755 index 0000000..a3583b9 --- /dev/null +++ b/runs-all/50-env.sh @@ -0,0 +1,39 @@ +#!/bin/sh +echo DEPLOYING ENV ALL +if [ "$CREATE_SYMLINKS" = 1 ]; then + cp -rs "$script_dir/env/." "$DEV_ENV" + [ -d "$script_dir/env_private/env/" ] && echo LINKING ENV PRIVATE______ && cp -rs "$script_dir/env_private/env/." "$DEV_ENV" +else + cp -r "$script_dir/env/." "$DEV_ENV" + [ -d "$script_dir/env_private/env/" ] && echo COPYING ENV PRIVATE______ && cp -r "$script_dir/env_private/env/." "$DEV_ENV" +fi + + +if [ ! -f "/etc/profile" ]; then + echo NO /etc/profile + echo SKIPPING SETTING \$PATH +else + export PATH="" + . /etc/profile + paths="$PATH" + path_dirs="$(find "$DEV_ENV/.local/bin/scripts" -type d)" + yt_cli_dir="$(find ~/stuff/ -name youtube-playlist-cli -type d)" + + path_dirs="$path_dirs +$yt_cli_dir +$(find ~/stuff/ -name theme-setter -type d) +$(find ~/.local/bin/blender* -maxdepth 0 -type d) +$(find "$script_dir/keep/scripts" -type d) +$(find "$script_dir/env_private/keep/scripts" -type d)" + + for s in $path_dirs; do + echo "adding $s to path" + paths="$paths:$s" + done + + echo "export PATH=\"$paths:\"" > "$DEV_ENV/.local/bin/system/paths.sh" + echo "export YT_PLAYLIST_DIR=\"$yt_cli_dir\"" >> "$DEV_ENV/.local/bin/system/paths.sh" + chmod u+x "$DEV_ENV/.local/bin/system/paths.sh" + +fi +echo ----------------- |
