BugFix-Resource sourcing (#46)
changes of directory using relative paths is back firing
This commit is contained in:
parent
eda28f4efd
commit
02057e68dc
|
|
@ -3,7 +3,8 @@
|
|||
#move to script directory so all relative paths work
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
. resources/arguments.sh
|
||||
. ./resources/colors.sh
|
||||
. ./resources/arguments.sh
|
||||
|
||||
if [ $CPU_CHECK = true ] && [ $USE_SWITCH_SOURCE = false ]; then
|
||||
#check what the CPU and OS are
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
. ./colors.sh
|
||||
|
||||
#Process command line options only if we haven't been processed once
|
||||
if [ -z "$CPU_CHECK" ]; then
|
||||
export script_name=`basename "$0"`
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#move to script directory so all relative paths work
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
. ./colors.sh
|
||||
. ./arguments.sh
|
||||
|
||||
#send a message
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@
|
|||
#move to script directory so all relative paths work
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
. ./arguments.sh
|
||||
. ../colors.sh
|
||||
. ../arguments.sh
|
||||
|
||||
apt-get update && apt-get install -y --force-yes curl memcached haveged
|
||||
arch=$(uname -m)
|
||||
|
|
|
|||
Loading…
Reference in New Issue