Skip to content

Commit

Permalink
urgent bug fixes (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
anilsingla authored Dec 2, 2024
2 parents 5b7ffcc + 0404cc3 commit a3fdc36
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions bliman_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ EOF

# Sanity checks
#bliman_setup_check
[[ xx"$?" != xx"0" ]] && return 1
#[[ xx"$?" != xx"0" ]] && return 1


bliman_setup_echo "yellow" "Installing BLIman."
Expand All @@ -219,7 +219,7 @@ EOF
bliman_setup_echo "red" "Bliman not downloaded properly. Please try again."
return 1
elif [ -d $tmp_location/BLIman ];then
cp -r $tmp_location/BLIman/contrib/ "$BLIMAN_DIR"
#cp -r $tmp_location/BLIman/contrib/ "$BLIMAN_DIR"
cp -r $tmp_location/BLIman/src/main/bash/* "$bliman_src_folder"
cp -r $tmp_location/BLIman/candidates/* "$bliman_candidates_folder"
mkdir -p "$BLIMAN_DIR/bin/"
Expand Down Expand Up @@ -464,6 +464,9 @@ done
case $command in
install)
bliman_setup_check
if [ xx"$?" != xx"0" ];then
return 1
fi
[[ -z $bliver ]] && bliman_setup_echo "yellow" "No specific BLiman version is defined. Installing latest from repository." && ! bliman_setup_download && return 1
[[ ! -z $bliver ]] && bliman_setup_echo "yellow" "Downloading BLIman version $bliver" && ! bliman_setup_download $bliver && return 1
[[ -z $genesis_path ]] && bliman_setup_echo "yellow" "No Genesis path is provided doanloading the default genesis file from Be-Secure." && ! bliman_get_genesis_file && return 1
Expand Down
6 changes: 3 additions & 3 deletions src/main/bash/bliman-attest-OSAR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ function attest_local () {

done

[[ -Z $OSAR_PATH ]] && __bliman_echo_red "OSAR file path is mandatory parameter." && return 1
[[ -Z $OSAR_FILE ]] && __bliman_echo_red "OSAR file name is mandatory parameter." && return 1
[[ -Z $KEY_BASED ]] && __bliman_echo_red "KEY based or keyless is required parameter." && return 1
[[ -z $OSAR_PATH ]] && __bliman_echo_red "OSAR file path is mandatory parameter." && return 1
[[ -z $OSAR_FILE ]] && __bliman_echo_red "OSAR file name is mandatory parameter." && return 1
[[ -z $KEY_BASED ]] && __bliman_echo_red "KEY based or keyless is required parameter." && return 1

attest_file_local $OSAR_PATH $OSAR_FILE $KEY_BASED $KEY_PATH $KEY_NAME

Expand Down
2 changes: 1 addition & 1 deletion src/main/bash/bliman-load-genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function __bli_load_genesis() {
echo $filename | grep "genesis-*.*.yaml"
if [ xx"$?" == xx"0" ];then
filetype=$(echo $filename | cut -d'-' -f2 )
[[ $filetype != "OSPO.yaml"]] && [[ $filetype != "OASP.yaml"]] && [[ $filetype != "AIC.yaml"]] && __bliman_echo_red "Nod a valid genesis filename." && return 1
[[ $filetype != "OSPO.yaml" ]] && [[ $filetype != "OASP.yaml" ]] && [[ $filetype != "AIC.yaml" ]] && __bliman_echo_red "Nod a valid genesis filename." && return 1
fi

if [ $filenamefirst == "http" ] || [ $filenamefirst == "https" ];then
Expand Down
4 changes: 2 additions & 2 deletions src/main/bash/bliman-verify-OSAR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ function verify_local () {

done

[[ -Z $OSAR_PATH ]] && __bliman_echo_red "OSAR file path is mandatory parameter." && return 1
[[ -Z $AUTH_TYPE ]] && __bliman_echo_red "Auth type is required parameter." && return 1
[[ -z $OSAR_PATH ]] && __bliman_echo_red "OSAR file path is mandatory parameter." && return 1
[[ -z $AUTH_TYPE ]] && __bliman_echo_red "Auth type is required parameter." && return 1


if [ xx"$AUTH_TYPE" == xx"key-based" ];then
Expand Down

0 comments on commit a3fdc36

Please sign in to comment.