Sha256: 24c8000a83917a1ffba6a473b76450ad50df941d5d38b04c04ccc9238ec567f9

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

#!/bin/sh -e

if [ "$(id -u)" -ne 0 ]; then
	echo "This utility needs to run as root"
	exit 1
fi

tmp_config="$(mktemp)"
cp "$SNAP_BUILDER_CONFIG" "$tmp_config"

editor "$tmp_config"
while ! "$SNAP/bin/ruby" "$SNAP/bin/github_snap_builder_config_validator" "$tmp_config"; do
	echo "Press [ENTER] to try again"
	read _
	editor "$tmp_config"
done

mv "$tmp_config" "$SNAP_BUILDER_CONFIG"

snapctl restart github-snap-builder.github-snap-builder

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
github_snap_builder-0.1.0 configure