From 4ceaba23ede71100eed9d6aee419c0d461813af1 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Thu, 23 Jan 2025 16:39:06 +0500 Subject: [PATCH] Update --- {text => assets/text}/about.txt | 0 make.sh | 3 +++ push.sh | 6 ++++++ src/main.rs | 2 +- 4 files changed, 10 insertions(+), 1 deletion(-) rename {text => assets/text}/about.txt (100%) create mode 100755 make.sh create mode 100755 push.sh diff --git a/text/about.txt b/assets/text/about.txt similarity index 100% rename from text/about.txt rename to assets/text/about.txt diff --git a/make.sh b/make.sh new file mode 100755 index 0000000..26156ef --- /dev/null +++ b/make.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +cargo build --release diff --git a/push.sh b/push.sh new file mode 100755 index 0000000..434d0f3 --- /dev/null +++ b/push.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +git add . && git commit -m "Update" +git push + +echo "Ready" diff --git a/src/main.rs b/src/main.rs index 90dcd77..e9dbe25 100644 --- a/src/main.rs +++ b/src/main.rs @@ -522,7 +522,7 @@ fn main() { term.set_text_color(Color::Gray0); term.set_redraw_style(RedrawStyle::PerWrite); - if let Ok(lines) = read_lines("text.txt") { + if let Ok(lines) = read_lines("/usr/share/melawy-linux-welcome/assets/text/about.txt") { // Получает итератор, который возвращает Option for line in lines { if let Ok(text_string) = line {