From 1546835057a94ebf2e569dd8292ccec5a97366ca Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 05 Nov 2017 14:56:45 -0500 Subject: scripts/update-flexi-color-picker.sh: New script --- (limited to 'scripts') diff --git a/scripts/update-flexi-color-picker.sh b/scripts/update-flexi-color-picker.sh new file mode 100755 index 0000000..6690def --- /dev/null +++ b/scripts/update-flexi-color-picker.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +set -eu + +URL_BASE='https://github.com/DavidDurman/FlexiColorPicker/raw/master' +RES_PATH='data/resources/flexi-color-picker' + +download() +{ + local rpath="${1}" + local lfile="${2}" + shift 2 + + wget -O "$(dirname "${0}")/../${RES_PATH}/${lfile}" \ + "${URL_BASE}/${rpath}" +} + +download 'README.md' 'README.md' +download 'colorpicker.js' 'colorpicker.jsin' +download 'themes.css' 'themes.cssin' -- cgit v0.9.1