#!/bin/bash

set -eo pipefail

SHELLCHECK_VERSION="0.4.4-4"

main() {
	local filename="shellcheck_${SHELLCHECK_VERSION}_amd64.deb"
	wget "http://ftp.debian.org/debian/pool/main/s/shellcheck/$filename"
	sudo dpkg -i "$filename"
}

main

#!/bin/bash

set -eo pipefail

main() {
	local filename="shellcheck_0.4.4-3_amd64.deb"
	wget "http://ftp.debian.org/debian/pool/main/s/shellcheck/$filename"
	sudo dpkg -i "$filename"
}

main

--- 
+++ 
@@ -2,8 +2,10 @@
 
 set -eo pipefail
 
+SHELLCHECK_VERSION="0.4.4-4"
+
 main() {
-	local filename="shellcheck_0.4.4-3_amd64.deb"
+	local filename="shellcheck_${SHELLCHECK_VERSION}_amd64.deb"
 	wget "http://ftp.debian.org/debian/pool/main/s/shellcheck/$filename"
 	sudo dpkg -i "$filename"
 }
Update to latest version and clean up.
