Skip to content

Commit

Permalink
Set the default value of SMARTSWITCH to false and error handling in…
Browse files Browse the repository at this point in the history
… sourcing the platform_utils file. (#20413)

Set the default value of `SMARTSWITCH` to false and error handling in sourcing the platform_utils file.

Signed-off-by: fountzou <ioannis.fountzoulas@nokia.com>
  • Loading branch information
fountzou authored Oct 23, 2024
1 parent d4779a8 commit c2f88d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dockers/docker-fpm-frr/base_image_files/TSA
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

# Source the platform_utils script
source "$(dirname "$0")/platform_utils"
source "$(dirname "$0")/platform_utils" > /dev/null 2>&1

${SMARTSWITCH:=false}

# Restrict command to sudo users
if [ "$EUID" -ne 0 ] ; then
Expand Down
4 changes: 3 additions & 1 deletion dockers/docker-fpm-frr/base_image_files/TSB
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

# Source the platform_utils script
source "$(dirname "$0")/platform_utils"
source "$(dirname "$0")/platform_utils" > /dev/null 2>&1

${SMARTSWITCH:=false}

# Restrict command to sudo users
if [ "$EUID" -ne 0 ] ; then
Expand Down
4 changes: 3 additions & 1 deletion dockers/docker-fpm-frr/base_image_files/TSC
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

# Source the platform_utils script
source "$(dirname "$0")/platform_utils"
source "$(dirname "$0")/platform_utils" > /dev/null 2>&1

${SMARTSWITCH:=false}

# Restrict command to sudo users
if [ "$EUID" -ne 0 ] ; then
Expand Down

0 comments on commit c2f88d0

Please sign in to comment.