#!/bin/sh

echo "Getting configuration value for 'foo'"
if ! output=$(snapctl get foo); then
	echo "Expected snapctl get to be able to retrieve value for 'foo'"
	exit 1
fi

expected_output="bar"
if "$output" -ne "$expected_output"; then
	echo "Expected output to be '$expected_output', but it was '$output'"
	exit 1
fi
