summaryrefslogtreecommitdiff
path: root/surf-open.sh
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2017-05-04 18:24:33 +0200
committerQuentin Rameau <quinq@fifth.space>2017-05-08 11:33:55 +0200
commitdca42648635b70f7d01adb8d9a53720a0c7909c1 (patch)
treed00c333d7573b224b0e16f973f9e0bd82f492d4f /surf-open.sh
parent654d527f87e59c6c9f507402878bed62398c4e61 (diff)
downloadsurf-dca42648635b70f7d01adb8d9a53720a0c7909c1.tar.gz
surf-dca42648635b70f7d01adb8d9a53720a0c7909c1.tar.bz2
surf-dca42648635b70f7d01adb8d9a53720a0c7909c1.zip
Simplify DOWNLOAD macro
No need to spawn an extra sh. Use short flags for curl and quote operands. Replace sleep with read, let the user close the download window instead of waiting for an arbitrary time. Rename d to reflect what it's used for. Reorder sh positional arguments. Set $0 to a command name and shift other positional parameters to clarify the "sh -c" command.
Diffstat (limited to 'surf-open.sh')
0 files changed, 0 insertions, 0 deletions