Skip to content

Commit

Permalink
Fix py3 version changed even version control enabled issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xumia committed Jan 12, 2021
1 parent 4ef3f13 commit 27ed107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonic-build-hooks/scripts/buildinfo_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ log_err()

get_command()
{
local path=$(echo $PATH | sed 's#[^:]*buildinfo/scripts:##' | sed "s#/usr/sbin:##")
local path=$(echo $PATH | sed 's#[^:]*buildinfo/scripts:##' | sed "s#/usr/sbin:##" | sed "s#/usr/local/sbin:##")
local command=$(PATH=$path which $1)
echo $command
}
Expand Down
1 change: 1 addition & 0 deletions src/sonic-build-hooks/scripts/symlink_build_hooks
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

HOOK_PATH=/usr/local/share/buildinfo/hooks
TARGET_PATH=/usr/sbin
[ -d /usr/local/sbin ] && TARGET_PATH=/usr/local/sbin
FILES=$(ls $HOOK_PATH)

usage()
Expand Down

0 comments on commit 27ed107

Please sign in to comment.