From d56152191663099d06c0351d4e1a3620883d530f Mon Sep 17 00:00:00 2001 From: overdodactyl Date: Mon, 11 Dec 2017 23:25:44 -0700 Subject: [PATCH] updater script for Mac/Linux #14 --- updater | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 updater diff --git a/updater b/updater new file mode 100755 index 0000000..feb981b --- /dev/null +++ b/updater @@ -0,0 +1,22 @@ +#!/bin/bash + +### ShadowFox updater for Mac/Linux +## author: @overdodactyl +## version: 1.0 + +## get the full path of this script (readlink for Linux, greadlink for Mac with coreutils installed) +sfp=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null) + +## fallback for Macs without coreutils +if [ -z "$sfp" ]; then sfp=${BASH_SOURCE[0]}; fi + +## change directory to the Firefox profile directory +cd "$(dirname "${sfp}")" + +## create a pull request using git +git pull + + +## Add any gulp tasks here. Examples commented out below: +## gulp userContent_amo +## gulp userChrome_basic