We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6999a95 + 297cc98 commit 66e0910Copy full SHA for 66e0910
scripts/weather.sh
@@ -6,6 +6,13 @@ fahrenheit=$1
6
location=$2
7
fixedlocation=$3
8
9
+# emulate timeout command from bash - timeout is not available by default on OSX
10
+if [ "$(uname)" == "Darwin" ]; then
11
+ timeout() {
12
+ perl -e 'alarm shift; exec @ARGV' "$duration" "$@"
13
+ }
14
+fi
15
+
16
display_location()
17
{
18
if $location && [[ ! -z "$fixedlocation" ]]; then
0 commit comments