~charles/dotfiles

dotfiles/utils/query-webpage/install.sh -rw-r--r-- 559 bytes
171c95a2Charles Daniels ztag: include tags in output 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e
set -u

cd "$(dirname "$0")"

timestamp() {
	date -u +"%Y-%m-%dT%H:%M:%SZ"
}

printf 'ts="%s" util=query-webpage msg="copying file" operation=copy src="%s" dest="%s"\n' "$(timestamp)" "./query-webpage" "$BIN_DIR/query-webpage"
cp "./query-webpage" "$BIN_DIR/query-webpage"

printf 'ts="%s" util=query-webpage msg="making file executable" operation=chmod file="%s"\n' "$(timestamp)" "$BIN_DIR/query-webpage"
chmod +x "$BIN_DIR/query-webpage"

printf 'ts="%s" util=query-webpage msg="finished installation for query-webpage"\n' "$(timestamp)"