sxmo_migrate.sh do not reload environment if already loaded
Signed-off-by: Willow Barraco <contact@willowbarraco.fr> Signed-off-by: Anjandev Momi <anjan@momi.ca>
This commit is contained in:

committed by
Anjandev Momi

parent
0acdebf0a7
commit
e2b2c510a2
@@ -6,8 +6,13 @@
|
||||
# shellcheck source=scripts/core/sxmo_common.sh
|
||||
. sxmo_common.sh
|
||||
|
||||
. /etc/profile.d/sxmo_init.sh
|
||||
_sxmo_load_environments
|
||||
if [ -z "$SXMO_DEVICE_NAME" ]; then
|
||||
. /etc/profile.d/sxmo_init.sh
|
||||
# not grabbed
|
||||
if [ -z "$SXMO_DEVICE_NAME" ]; then
|
||||
_sxmo_load_environments
|
||||
fi
|
||||
fi
|
||||
|
||||
smartdiff() {
|
||||
if command -v colordiff > /dev/null; then
|
||||
|
Reference in New Issue
Block a user