[yocto] [meta-swupd][PATCH 1/2] oe-swupd-helpers: convert scripts to posix shell
André Draszik
git at andred.net
Mon Nov 21 08:29:03 PST 2016
From: André Draszik <adraszik at tycoint.com>
These scripts don't do much and there's no reason for
them to require bash as interpreter.
Signed-off-by: André Draszik <adraszik at tycoint.com>
---
recipes-core/swupd-client/oe-swupd-helpers/clr_pre_update.sh | 2 +-
recipes-core/swupd-client/oe-swupd-helpers/kernel_updater.sh | 2 +-
recipes-core/swupd-client/oe-swupd-helpers/systemdboot_updater.sh | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/recipes-core/swupd-client/oe-swupd-helpers/clr_pre_update.sh b/recipes-core/swupd-client/oe-swupd-helpers/clr_pre_update.sh
index 6302090..835948d 100755
--- a/recipes-core/swupd-client/oe-swupd-helpers/clr_pre_update.sh
+++ b/recipes-core/swupd-client/oe-swupd-helpers/clr_pre_update.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -u
#######################################
diff --git a/recipes-core/swupd-client/oe-swupd-helpers/kernel_updater.sh b/recipes-core/swupd-client/oe-swupd-helpers/kernel_updater.sh
index b0d5335..98e12c2 100755
--- a/recipes-core/swupd-client/oe-swupd-helpers/kernel_updater.sh
+++ b/recipes-core/swupd-client/oe-swupd-helpers/kernel_updater.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#######################################
# This script will be called after an updated kernel has been installed
diff --git a/recipes-core/swupd-client/oe-swupd-helpers/systemdboot_updater.sh b/recipes-core/swupd-client/oe-swupd-helpers/systemdboot_updater.sh
index 470cd6e..19f025d 100755
--- a/recipes-core/swupd-client/oe-swupd-helpers/systemdboot_updater.sh
+++ b/recipes-core/swupd-client/oe-swupd-helpers/systemdboot_updater.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#######################################
# systemd bootloader installer
--
2.10.2
More information about the yocto
mailing list