From 4894cfc93b1be23a56e55dfaf2081260f93f5088 Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Thu, 2 Jan 2025 23:25:46 +0200 Subject: [PATCH] bin: add upd script --- bin/upd | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/upd diff --git a/bin/upd b/bin/upd new file mode 100755 index 0000000..cb02811 --- /dev/null +++ b/bin/upd @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +upd_fname=upd.sh +upd_scripts=( + "$HOME/org" + "$HOME/Documents/Obsidian" +) + +for path in "${upd_scripts[@]}"; do + echo -e "\e[32m====== $path\e[0m" + cd "$path" || exit 1 + "$path"/"$upd_fname" +done