Skip to content

Commit 0bf6706

Browse files
codepuzzlelepture
authored andcommitted
Fix TypeError: argv.unshit is not a function (spmjs#104)
1 parent 431573d commit 0bf6706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/scp2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function main(argv) {
1717
var args = argv.shift();
1818
args = args.split('=');
1919
if (args.length > 1) {
20-
argv.unshit(args.slice(1).join('='));
20+
argv.unshift(args.slice(1).join('='));
2121
}
2222
return args[0];
2323
};

0 commit comments

Comments
 (0)