Skip to content

Commit

Permalink
Bug 32922: Remove space in shebang
Browse files Browse the repository at this point in the history
Some of our scripts have a space in the "shebang" (first) line:

  #! /usr/bin/perl

This is not illegal, and it does work, but it is good to be
consistent, so this patch removes the space.

To test:
- Run: grep -rn --include=*.pl '#! /usr/' *
- See the list of files that have a space in the shebang
- Apply the patch
- Run the command again, there should be no output, meaning there
  are no more files with space in the shebang
- Have a look at the patch and check that it only changes the
  shebangs
- Sign off

Signed-off-by: Matt Blenkinsop <[email protected]>
Signed-off-by: Martin Renvoize <[email protected]>
Signed-off-by: Tomas Cohen Arazi <[email protected]>
  • Loading branch information
MagnusEnger authored and tomascohen committed Feb 20, 2023
1 parent f6bf78a commit 6a0cd4c
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion admin/background_jobs.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl

# This file is part of Koha.
#
Expand Down
2 changes: 1 addition & 1 deletion admin/cities.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl

# Copyright 2006 SAN OUEST-PROVENCE et Paul POULAIN
# Copyright 2015 Koha Development Team
Expand Down
2 changes: 1 addition & 1 deletion admin/classsources.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl
#
# Copyright 2007 LibLime
# Copyright 2018 Koha Development Team
Expand Down
2 changes: 1 addition & 1 deletion admin/credit_types.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl

# Copyright 2020 Koha Development Team
#
Expand Down
2 changes: 1 addition & 1 deletion admin/curbside_pickup.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl

# This file is part of Koha.
#
Expand Down
2 changes: 1 addition & 1 deletion admin/debit_types.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl

# Copyright 2019 Koha Development Team
#
Expand Down
2 changes: 1 addition & 1 deletion admin/desks.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl

# Copyright (C) 2020 BULAC
#
Expand Down
2 changes: 1 addition & 1 deletion admin/library_groups.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl

# Copyright 2016 ByWater Solutions
#
Expand Down
2 changes: 1 addition & 1 deletion admin/matching-rules.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl
#
# Copyright 2007 LibLime
#
Expand Down
2 changes: 1 addition & 1 deletion admin/patron-attr-types.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl
#
# Copyright 2008 LibLime
# Parts copyright 2010 BibLibre
Expand Down
2 changes: 1 addition & 1 deletion circ/curbside_pickups.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl

# This file is part of Koha.
#
Expand Down
2 changes: 1 addition & 1 deletion erm/erm.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl

# This file is part of Koha.
#
Expand Down
2 changes: 1 addition & 1 deletion misc/add_statistics_borrowers_categorycode.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl

## EXTRACTED USING THIS:
# grep -Pnir "'notforloan' => '6'" 01_items0* | grep -Po "'id' => '-?(\d+)'" | grep -Po "\d+" > itemnumbers_notforloan_6.txt
Expand Down
2 changes: 1 addition & 1 deletion misc/cronjobs/delete_items.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl

# This file is part of Koha.
#
Expand Down
2 changes: 1 addition & 1 deletion misc/maintenance/check_syspref_cache.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl

# This file is part of Koha.
#
Expand Down
2 changes: 1 addition & 1 deletion misc/maintenance/compare_es_to_db.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/perl
#!/usr/bin/perl
#
# This compares record counts from a Koha database to Elasticsearch

Expand Down

0 comments on commit 6a0cd4c

Please sign in to comment.