{homebrew,syncplay}: make the 'marker' files dotfiles

This commit is contained in:
Aminda Suomalainen 2026-06-09 09:25:01 +03:00
parent 8cb173f46a
commit 02ba189e1e
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 5 additions and 5 deletions

View File

@ -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 $@

View File

@ -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