From 02ba189e1e7d191313b91d1e744110c53986ee5d Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 9 Jun 2026 09:25:01 +0300 Subject: [PATCH] {homebrew,syncplay}: make the 'marker' files dotfiles --- bash/usr-local-bin/homebrew | 6 +++--- bash/usr-local-bin/syncplay | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bash/usr-local-bin/homebrew b/bash/usr-local-bin/homebrew index 0d260ab..c16c73f 100755 --- a/bash/usr-local-bin/homebrew +++ b/bash/usr-local-bin/homebrew @@ -13,8 +13,8 @@ if [ -d /var/roothome ]; then exit 1 fi - if [ -f "$(xdg-user-dir RUNTIME)/brew.$(date -I)" ]; then - echo "Homebrew has been patched today. If this is wrong, rm $(xdg-user-dir RUNTIME)/brew.$(date -I)" + if [ -f "$(xdg-user-dir RUNTIME)/.brew.$(date -I)" ]; then + echo "Homebrew has been patched today. If this is wrong, rm $(xdg-user-dir RUNTIME)/.brew.$(date -I)" else if [ ! -d "/home/linuxbrew/.linuxbrew" ]; then echo "Homebrew not found." @@ -24,7 +24,7 @@ if [ -d /var/roothome ]; then cd /home/linuxbrew/.linuxbrew/bin/ cp /home/linuxbrew/.linuxbrew/bin/brew /home/linuxbrew/.linuxbrew/bin/brew2 sed -i 's/pwd\ \-P/pwd/g' /home/linuxbrew/.linuxbrew/bin/brew2 - touch "$(xdg-user-dir RUNTIME)/brew.$(date -I)" + touch "$(xdg-user-dir RUNTIME)/.brew.$(date -I)" fi /home/linuxbrew/.linuxbrew/bin/brew2 $@ diff --git a/bash/usr-local-bin/syncplay b/bash/usr-local-bin/syncplay index 328c25d..f9bfe23 100755 --- a/bash/usr-local-bin/syncplay +++ b/bash/usr-local-bin/syncplay @@ -20,7 +20,7 @@ if ! hash xdg-user-dir 2> /dev/null; then exit 1 fi -if [ -f "$(xdg-user-dir RUNTIME)/syncplay.$(date -I)" ]; then +if [ -f "$(xdg-user-dir RUNTIME)/.syncplay.$(date -I)" ]; then echo "Syncplay has been touched today" else # If syncplay doesn't exist, get it @@ -51,7 +51,7 @@ else pip3 install pip --upgrade pip3 install -r requirements.txt --upgrade pip3 install -r requirements_gui.txt --upgrade - touch $(xdg-user-dir RUNTIME)/syncplay.$(date -I) + touch $(xdg-user-dir RUNTIME)/.syncplay.$(date -I) fi # finally launch the syncplay with any flags specified