# The Lounge 0001 \[From the Beginning\]

**URL:** <https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64>\
**Category:** Lounge\
**Created:** [August 27, 2017, 2:44am UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64 "2017-08-27T02:44:02Z")\
**Posts on this page:** 20\
**Page:** 94

<div class="post-metadata">

**Author:** ![Dje4321](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/dje4321/32/7355_2.png) [@Dje4321](https://forum.0cd.xyz/u/Dje4321)\
**Post date:** [January 6, 2018, 8:03pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1861 "2018-01-06T20:03:43Z")

</div>

nothing to bad at all.

want to have the script not recompile the game if there are no new updates and have it install the game to a build directory

---

<div class="post-metadata">

**Author:** ![Michael](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/michael/32/9677_2.png) [@Michael](https://forum.0cd.xyz/u/Michael)\
**Post date:** [January 6, 2018, 8:11pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1862 "2018-01-06T20:11:26Z")

</div>

Nothing too bad then, the checking for new updates might be the harder part. 🤔 does git pull have a return condition if it pulled any updates. I might have to check that.

---

<div class="post-metadata">

**Author:** ![Dje4321](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/dje4321/32/7355_2.png) [@Dje4321](https://forum.0cd.xyz/u/Dje4321)\
**Post date:** [January 6, 2018, 8:13pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1863 "2018-01-06T20:13:10Z")

</div>

i was just gonna check if it said it didnt have any updates and return XD

---

<div class="post-metadata">

**Author:** ![Michael](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/michael/32/9677_2.png) [@Michael](https://forum.0cd.xyz/u/Michael)\
**Post date:** [January 6, 2018, 8:15pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1864 "2018-01-06T20:15:29Z")

</div>

lel yeah thats probably an easier way to do it.

---

<div class="post-metadata">

**Author:** ![Dje4321](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/dje4321/32/7355_2.png) [@Dje4321](https://forum.0cd.xyz/u/Dje4321)\
**Post date:** [January 6, 2018, 8:24pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1865 "2018-01-06T20:24:33Z")

</div>

yep. Hoping it all goes well

---

<div class="post-metadata">

**Author:** ![Michael](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/michael/32/9677_2.png) [@Michael](https://forum.0cd.xyz/u/Michael)\
**Post date:** [January 6, 2018, 8:27pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1866 "2018-01-06T20:27:33Z")

</div>

yep good luck. if it goes well maybe we should make a forum topic to share lazy automation scripts 😃

---

<div class="post-metadata">

**Author:** ![Dje4321](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/dje4321/32/7355_2.png) [@Dje4321](https://forum.0cd.xyz/u/Dje4321)\
**Post date:** [January 6, 2018, 8:32pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1867 "2018-01-06T20:32:17Z")

</div>

perhaps 😃

---

<div class="post-metadata">

**Author:** ![Michael](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/michael/32/9677_2.png) [@Michael](https://forum.0cd.xyz/u/Michael)\
**Post date:** [January 6, 2018, 8:35pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1868 "2018-01-06T20:35:56Z")

</div>

neat. if so I’d have to search through my _mostly working alright_ but probably sketchy as fuck automation scripts and touch them up.

---

<div class="post-metadata">

**Author:** ![Dje4321](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/dje4321/32/7355_2.png) [@Dje4321](https://forum.0cd.xyz/u/Dje4321)\
**Post date:** [January 6, 2018, 8:53pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1869 "2018-01-06T20:53:54Z")

</div>

@Michael know why this is returning that it has too many arguments?

```auto
#!/bin/bash

UPDATES=$(git pull)

if [$UPDATES = "Already up to date."]
then
        exit
fi

echo "updates were found"

```

---

<div class="post-metadata">

**Author:** ![Michael](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/michael/32/9677_2.png) [@Michael](https://forum.0cd.xyz/u/Michael)\
**Post date:** [January 6, 2018, 8:56pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1870 "2018-01-06T20:56:11Z")

</div>

I’m fairly sure it doesn’t need any brackets if it isn’t doing conditional statements so `if $UPDATES = "Already up to date."` should work?

ah strach that its `==` instead of just `=`

---

<div class="post-metadata">

**Author:** ![Dje4321](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/dje4321/32/7355_2.png) [@Dje4321](https://forum.0cd.xyz/u/Dje4321)\
**Post date:** [January 6, 2018, 8:57pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1871 "2018-01-06T20:57:51Z")

</div>

```auto
./build-dev.sh: line 5: Already: command not found
updates were found

```

---

<div class="post-metadata">

**Author:** ![Michael](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/michael/32/9677_2.png) [@Michael](https://forum.0cd.xyz/u/Michael)\
**Post date:** [January 6, 2018, 9:04pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1872 "2018-01-06T21:04:53Z")

</div>

ah found it. forgot that you need double brackets. knew it was something to do with brackets.

this should work now

```auto
#!/bin/bash

UPDATES=$(git pull)

if [[$UPDATES = "Already up to date."]]
then
        exit
fi

echo "updates were found"

```

---

<div class="post-metadata">

**Author:** ![Dje4321](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/dje4321/32/7355_2.png) [@Dje4321](https://forum.0cd.xyz/u/Dje4321)\
**Post date:** [January 6, 2018, 9:06pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1873 "2018-01-06T21:06:02Z")

</div>

neat. thanks 😃

---

<div class="post-metadata">

**Author:** ![Michael](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/michael/32/9677_2.png) [@Michael](https://forum.0cd.xyz/u/Michael)\
**Post date:** [January 6, 2018, 9:06pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1874 "2018-01-06T21:06:53Z")

</div>

np 😃

---

<div class="post-metadata">

**Author:** ![Dje4321](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/dje4321/32/7355_2.png) [@Dje4321](https://forum.0cd.xyz/u/Dje4321)\
**Post date:** [January 6, 2018, 9:08pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1875 "2018-01-06T21:08:10Z")

</div>

so this is what ive got so far 😃

```auto
#!/bin/bash

UPDATES=$(git pull)

if [[$UPDATES = "Already up to date."]]
then
        echo "No updates were found"
        exit
fi

if [-e output.log]
then
        rm output.log
fi

make clean

echo "#############################"
echo "Compiling with tiles build"
echo "#############################"
make RELEASE=1 LTO=1 TILES=1 SOUND=1 LUA=1 CLANG=1 CCACHE=1 |& tee -a output.log

echo "#############################"
echo "Compiling default build"
echo "#############################"
make RELEASE=1 LTO=1 LUA=1 CLANG=1 CCACHE=1 |& tee -a output.log

```

---

<div class="post-metadata">

**Author:** ![Michael](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/michael/32/9677_2.png) [@Michael](https://forum.0cd.xyz/u/Michael)\
**Post date:** [January 6, 2018, 9:10pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1876 "2018-01-06T21:10:29Z")

</div>

Nice looks pretty good 😃

---

<div class="post-metadata">

**Author:** ![Dje4321](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/dje4321/32/7355_2.png) [@Dje4321](https://forum.0cd.xyz/u/Dje4321)\
**Post date:** [January 6, 2018, 9:21pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1877 "2018-01-06T21:21:15Z")

</div>

YES

---

<div class="post-metadata">

**Author:** ![Michael](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/michael/32/9677_2.png) [@Michael](https://forum.0cd.xyz/u/Michael)\
**Post date:** [January 6, 2018, 9:23pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1878 "2018-01-06T21:23:40Z")

</div>

MY GOD! Payday in VR would be amazing 😃

---

<div class="post-metadata">

**Author:** ![Michael](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/michael/32/9677_2.png) [@Michael](https://forum.0cd.xyz/u/Michael)\
**Post date:** [January 6, 2018, 9:27pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1879 "2018-01-06T21:27:35Z")

</div>

lel he may not be very good at it looks like great fun 😂

---

<div class="post-metadata">

**Author:** ![Dje4321](https://forum.0cd.xyz/user_avatar/forum.0cd.xyz/dje4321/32/7355_2.png) [@Dje4321](https://forum.0cd.xyz/u/Dje4321)\
**Post date:** [January 6, 2018, 9:28pm UTC](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64/1880 "2018-01-06T21:28:49Z")

</div>

im also sure its alot harder in VR too

[Previous page](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64.md?page=93)

[Next page](https://forum.0cd.xyz/t/the-lounge-0001-from-the-beginning/64.md?page=95)
