mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2026-06-10 02:09:28 +02:00
{homebrew,syncplay}: make the 'marker' files dotfiles
This commit is contained in:
parent
8cb173f46a
commit
02ba189e1e
@ -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 $@
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user