mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-25 05:58:06 +00:00
Improve script to exit properly
This commit is contained in:
parent
7433dfb620
commit
2eea7026f5
|
@ -1,5 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Catch ctrl-c to exit script - otherwise, loop just runs again
|
||||||
|
trap ctrl_c INT
|
||||||
|
function ctrl_c() {
|
||||||
|
echo "Exiting..."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
# Clear out any old rootfs copies
|
||||||
rm -rf $(dirname $0)/out/rootfs_*
|
rm -rf $(dirname $0)/out/rootfs_*
|
||||||
|
|
||||||
# Did not work well on Linux.... works on OSX :-/
|
# Did not work well on Linux.... works on OSX :-/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user