File tree Expand file tree Collapse file tree 1 file changed +33
-4
lines changed
Expand file tree Collapse file tree 1 file changed +33
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- set -ex
3+ set -e
44
5+ # Colors
6+ # red='\033[0;31m'
7+ # green='\033[0;32m'
8+ # blue='\033[0;34m'
9+ magenta=' \033[0;35m'
10+ cyan=' \033[0;36m'
11+ yellow=' \033[0;33m'
12+ clear=' \033[0m'
13+ print_info () { printf " \n${yellow} ⚡ ${magenta} %s${clear} \n" " ${@ } " ; }
14+ print_success () { printf " \n${cyan} 🎉 %s${clear} \n\n" " ${@ } " ; }
15+ # print_err() { printf "\n${red}💥 %s${clear}\n\n" "${@}"; }
16+ print_warn () { printf " \n${yellow} ⚠ %s${clear} \n\n" " ${@ } " ; }
17+
18+ echo '
19+ ██╗ ██╗██╗ ██╗ █████╗ ██╗ ██╗██╗ █████╗ ███╗ ██╗██████╗ ███████╗ █████╗ ████████╗███████╗██╗ ██╗ ██╗████████╗███████╗
20+ ╚██╗██╔╝██║ ██║██╔══██╗╚██╗ ██╔╝██║ ██╔══██╗████╗ ██║██╔══██╗ ██╔════╝██╔══██╗╚══██╔══╝██╔════╝██║ ██║ ██║╚══██╔══╝██╔════╝
21+ ╚███╔╝ ██║ █╗ ██║███████║ ╚████╔╝ ██║ ███████║██╔██╗ ██║██║ ██║█████╗███████╗███████║ ██║ █████╗ ██║ ██║ ██║ ██║ █████╗
22+ ██╔██╗ ██║███╗██║██╔══██║ ╚██╔╝ ██║ ██╔══██║██║╚██╗██║██║ ██║╚════╝╚════██║██╔══██║ ██║ ██╔══╝ ██║ ██║ ██║ ██║ ██╔══╝
23+ ██╔╝ ██╗╚███╔███╔╝██║ ██║ ██║ ███████╗██║ ██║██║ ╚████║██████╔╝ ███████║██║ ██║ ██║ ███████╗███████╗███████╗██║ ██║ ███████╗
24+ ╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝ ╚══════╝
25+ '
26+
27+ {{ if (stat (joinPath .chezmoi.homeDir " .local/share/xwayland-satellite/.git/HEAD" )) -}}
528# {{ include (joinPath .chezmoi.homeDir ".local/share/xwayland-satellite/.git/HEAD") }}
29+ {{ end -}}
30+
631
732if [[ -f " /usr/lib/gcc/x86_64-redhat-linux/14/include/stddef.h" ]]; then
833 export C_INCLUDE_PATH=" /usr/lib/gcc/x86_64-redhat-linux/14/include:${C_INCLUDE_PATH} "
934fi
1035
11- cd ~ /.local/share/xwayland-satellite
12- cargo build --release
13- cp target/release/xwayland-satellite ~ /.local/bin/
36+ if [ -d " {{ .chezmoi.homeDir }}/.local/share/xwayland-satellite" ]; then
37+ cd " {{ .chezmoi.homeDir }}/.local/share/xwayland-satellite"
38+ cargo build --release
39+ cp target/release/xwayland-satellite " {{ .chezmoi.homeDir }}/.local/bin/"
40+ else
41+ print_warn " xwayland-satellite clone not found, skipping build"
42+ fi
1443
1544# vi: ft=bash
You can’t perform that action at this time.
0 commit comments