From a021ce011bf4cd8dea339ae2b126cf8d5df36cd3 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 2 Oct 2017 20:31:43 -0700 Subject: [PATCH] Correct argv --- upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upgrade.php b/upgrade.php index c1010dad48..9847387b68 100644 --- a/upgrade.php +++ b/upgrade.php @@ -9,7 +9,7 @@ if (($username=='root') || ($username=='admin')) { } -($argv[0]) ? $branch = $argv[0] : $branch = 'master'; +($argv[1]) ? $branch = $argv[1] : $branch = 'master'; echo "Welcome to the Snipe-IT upgrader.\n\n"; echo "Please note that this script will not download the latest Snipe-IT \n";