Skip to content

Instantly share code, notes, and snippets.

@scottie
Last active March 19, 2018 03:57
Show Gist options
  • Select an option

  • Save scottie/a9acc75c4a5c21dab6d6ae1df975c94b to your computer and use it in GitHub Desktop.

Select an option

Save scottie/a9acc75c4a5c21dab6d6ae1df975c94b to your computer and use it in GitHub Desktop.

Revisions

  1. scottie revised this gist Mar 19, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion test.sh
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ echo [backup on config]
    rm -fr ~/.instacash
    echo [removed .daemon directory]
    mkdir ~/.instacash
    echo [rectoring config]
    echo [restoring config]
    cp ~/backup.conf ~/.instacash/instacash.conf
    ./instacash/src/instacashd
    echo [testing]
  2. scottie revised this gist Mar 19, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion test.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #!/bin/bash
    #console
    echo [Quick Build Test]
    kill -9 $(ps aux | grep '[w]ired' | awk '{print $2}')
    kill -9 $(ps aux | grep '[i]nstacashd' | awk '{print $2}')
    echo [killed daemon process]
    cd instacash
    make
  3. scottie created this gist Mar 19, 2018.
    27 changes: 27 additions & 0 deletions test.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    #!/bin/bash
    #console
    echo [Quick Build Test]
    kill -9 $(ps aux | grep '[w]ired' | awk '{print $2}')
    echo [killed daemon process]
    cd instacash
    make
    echo make done
    cd ~/
    cp ~/.instacash/instacash.conf ~/backup.conf
    echo [backup on config]
    rm -fr ~/.instacash
    echo [removed .daemon directory]
    mkdir ~/.instacash
    echo [rectoring config]
    cp ~/backup.conf ~/.instacash/instacash.conf
    ./instacash/src/instacashd
    echo [testing]
    ./instacash/src/instacash-cli getinfo
    echo [READY...]
    tail ~/.instacash/debug.log
    sleep 5
    tail ~/.instacash/debug.log
    sleep 5
    tail ~/.instacash/debug.log
    echo [Killing...]
    kill -9 $(ps aux | grep '[i]nstacashd' | awk '{print $2}')