diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2025-06-10 20:39:48 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2025-06-10 20:39:48 -0500 |
| commit | 7cf3fa4899155cd16a6642ea5c9c7619c1bdf5d9 (patch) | |
| tree | e123a4761dc238a2307c8695e0bb10c277c6495f /runs | |
| parent | a67c7f6bab5bb732129b7b399eabcec9237ab946 (diff) | |
made get-reqs prettier. fixed script_dir overwrite
Diffstat (limited to 'runs')
| -rwxr-xr-x | runs/env.sh | 18 | ||||
| -rwxr-xr-x | runs/get-reqs-arch.sh | 14 |
2 files changed, 18 insertions, 14 deletions
diff --git a/runs/env.sh b/runs/env.sh index 7d42323..a08be0a 100755 --- a/runs/env.sh +++ b/runs/env.sh @@ -1,16 +1,16 @@ #!/bin/bash -script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" +script_dir_2="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" echo DEPLOYING ENV -cp $script_dir/../env/.bashrc "$DEV_ENV" -cp $script_dir/../env/.bash_profile "$DEV_ENV" -cp $script_dir/../env/.vimrc "$DEV_ENV" -cp $script_dir/../env/.markdownlint.yaml "$DEV_ENV" +cp $script_dir_2/../env/.bashrc "$DEV_ENV" +cp $script_dir_2/../env/.bash_profile "$DEV_ENV" +cp $script_dir_2/../env/.vimrc "$DEV_ENV" +cp $script_dir_2/../env/.markdownlint.yaml "$DEV_ENV" mkdir "$DEV_ENV/.config" -cp $script_dir/../env/.config/.profile "$DEV_ENV/.config" -cp -r $script_dir/../env/.config/nvim "$DEV_ENV/.config" -cp -r $script_dir/../env/.config/tmux "$DEV_ENV/.config" -cp -r $script_dir/../env/.config/wezterm "$DEV_ENV/.config" +cp $script_dir_2/../env/.config/.profile "$DEV_ENV/.config" +cp -r $script_dir_2/../env/.config/nvim "$DEV_ENV/.config" +cp -r $script_dir_2/../env/.config/tmux "$DEV_ENV/.config" +cp -r $script_dir_2/../env/.config/wezterm "$DEV_ENV/.config" echo ----------------- diff --git a/runs/get-reqs-arch.sh b/runs/get-reqs-arch.sh index f054d89..f81c958 100755 --- a/runs/get-reqs-arch.sh +++ b/runs/get-reqs-arch.sh @@ -1,9 +1,13 @@ #!/bin/bash -sudo="sudo" -[ doas ] && sudo="doas" +arch="$(uname -r | grep arch)" +artix="$(uname -r | grep artix)" +if [ $artix ] || [ $arch ]; then + sudo="sudo" + [ doas ] && sudo="doas" -echo GETTING MIN REQS + echo GETTING MIN REQS -$sudo pacman -S neovim rsync man-db wget git lf fzf grep + $sudo pacman -S neovim rsync man-db wget git lf fzf grep -echo ------------- + echo ------------- +fi |
