Skip to content

Commit

Permalink
Switch to /bin/bash everywhere
Browse files Browse the repository at this point in the history
The referenced issue points out portability issues with 'echo -n' in
/bin/sh scripts. As we use some bash constructs already, make this
explicit in all scripts. There are several issues reported by
'checkbashisms -f -n -p' so do the simple fix for now.

Issue: #74
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
kdave committed Nov 6, 2019
1 parent a6219ee commit 22373e9
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion btrfs-balance.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.

Expand Down
2 changes: 1 addition & 1 deletion btrfs-defrag.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.

Expand Down
2 changes: 1 addition & 1 deletion btrfs-scrub.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.

Expand Down
2 changes: 1 addition & 1 deletion btrfs-trim.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.

Expand Down
2 changes: 1 addition & 1 deletion btrfsmaintenance-refresh-cron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.

Expand Down
2 changes: 1 addition & 1 deletion dist-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# usage: $0 [sysconfdir]
#
# Install configuration template, documentation and scripts. Target path is
Expand Down
2 changes: 1 addition & 1 deletion prepare-release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

base=btrfsmaintenance
version=$(grep -i ^version: ${base}.spec | awk '{print $2}')
Expand Down

0 comments on commit 22373e9

Please sign in to comment.