Update switch.sh
This commit is contained in:
parent
75daa2acb2
commit
858a31f6cf
|
|
@ -1,7 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
#move to script directory so all relative paths work
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
if [ .$USE_SWITCH_SOURCE = .true ]; then
|
#includes
|
||||||
if [ .$USE_SWITCH_MASTER = .true ]; then
|
. ./config.sh
|
||||||
|
|
||||||
|
if [ .$switch_source = .true ]; then
|
||||||
|
if [ ."$switch_branch" = "master" ]; then
|
||||||
resources/switch/source-master.sh
|
resources/switch/source-master.sh
|
||||||
else
|
else
|
||||||
resources/switch/source-release.sh
|
resources/switch/source-release.sh
|
||||||
|
|
@ -15,16 +21,17 @@ if [ .$USE_SWITCH_SOURCE = .true ]; then
|
||||||
|
|
||||||
#systemd service
|
#systemd service
|
||||||
resources/switch/source-systemd.sh
|
resources/switch/source-systemd.sh
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
if [ .$switch_package = .true ]; then
|
||||||
if [ .$USE_SWITCH_MASTER = .true ]; then
|
if [ ."$switch_branch" = "master" ]; then
|
||||||
if [ .$USE_SWITCH_PACKAGE_ALL = .true ]; then
|
if [ .$switch_package_all = .true ]; then
|
||||||
resources/switch/package-master-all.sh
|
resources/switch/package-master-all.sh
|
||||||
else
|
else
|
||||||
resources/switch/package-master.sh
|
resources/switch/package-master.sh
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ .$USE_SWITCH_PACKAGE_ALL = .true ]; then
|
if [ .$switch_package_all = .true ]; then
|
||||||
resources/switch/package-all.sh
|
resources/switch/package-all.sh
|
||||||
else
|
else
|
||||||
resources/switch/package-release.sh
|
resources/switch/package-release.sh
|
||||||
|
|
@ -39,5 +46,4 @@ else
|
||||||
|
|
||||||
#systemd service
|
#systemd service
|
||||||
resources/switch/package-systemd.sh
|
resources/switch/package-systemd.sh
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue