Skip to content

Commit

Permalink
Merge pull request #38 from gboutry/fix/horizon-conditions
Browse files Browse the repository at this point in the history
Flip plugin files condition
  • Loading branch information
hemanthnakkina authored Feb 20, 2024
2 parents a13bfe8 + fded2ec commit 37f426e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rocks/horizon/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,10 @@ parts:
while read line; do
enable_file=$CRAFT_STAGE/$ENABLED/$line
available_file=$CRAFT_PRIME/$AVAILABLE/$line
[[ -f $enable_file ]] && mv $enable_file $available_file
[[ ! -f $available_file ]] && echo "File $available_file not found" && exit 1
[[ ! -f $enable_file ]] || mv $enable_file $available_file
[[ -f $available_file ]] || (echo "File $available_file not found" && exit 1)
done < $CRAFT_STAGE/$AVAILABLE/$plugin_file
done
# load bearing echo, do not remove
echo processed plugin files
horizon-plugin:
plugin: dump
Expand Down

0 comments on commit 37f426e

Please sign in to comment.