summarylogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/update.sh b/update.sh
index f6148abd78de..5c91c597e0fe 100755
--- a/update.sh
+++ b/update.sh
@@ -1,9 +1,19 @@
-#!/usr/bin/bash
+#!/bin/bash
set -e
shopt -s nocasematch
-source '/usr/share/makepkg/util.sh'
-[[ -t 2 ]] && colorize
+
+if [[ -f '/usr/share/makepkg/util.sh' ]]; then
+ source '/usr/share/makepkg/util.sh'
+ [[ -t 2 ]] && colorize
+else
+ function msg() {
+ echo '=>' "$@"
+ }
+ function msg2() {
+ echo ' ' "$@"
+ }
+fi
msg 'Query list of nightly sources'
srcurl='http://nightlies.videolan.org/build/source/'