summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2022-03-20 12:03:44 +0100
committerJulian Andres Klode <jak@debian.org>2025-05-19 16:02:55 +0000
commitd8f4038b45507620f7696fecd8527345f1f384db (patch)
treea2676910c4302b29f8a2ac408edd4de614eab304
parent45466eb7dff31b60b834bbc8b78d0b0bf562bba3 (diff)
dselect: Use strict and warnings pragmas
Move the warnings from the shebang into a proper pragma, so that we are sure it will be enabled regardless of the script being called explicitly without the flag.
-rwxr-xr-xdselect/setup5
1 files changed, 3 insertions, 2 deletions
diff --git a/dselect/setup b/dselect/setup
index ba1a4ca33..ac910d1c1 100755
--- a/dselect/setup
+++ b/dselect/setup
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
# -*- Mode: Perl -*-
# setup.pl ---
# Author : Manoj Srivastava ( srivasta@tiamat.datasync.com )
@@ -14,7 +14,8 @@
# This file is designed to go into /usr/lib/apt/methods/setup
#
-#use strict;
+use strict;
+use warnings;
#use diagnostics;
#printf STDERR "DEBUG: Arguments $ARGV[0];$ARGV[1];$ARGV[2];\n";