From b891e1bcd88dd324c873af4354062f7971481a3b Mon Sep 17 00:00:00 2001 From: Danil Semelenov Date: Sun, 7 Dec 2014 01:59:37 +0300 Subject: [PATCH] Change sourcing of common.sh to be more reliable --- boot.sh | 2 +- chroot.sh | 2 +- format.sh | 2 +- mount.sh | 2 +- root.sh | 2 +- system.sh | 2 +- umount.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/boot.sh b/boot.sh index 4924904..098c95a 100755 --- a/boot.sh +++ b/boot.sh @@ -1,5 +1,5 @@ #!/bin/bash -. ${BASH_SOURCE[0]%/*}/common.sh +. "$(dirname `readlink -f "${BASH_SOURCE[0]}"`)"/common.sh select-drive diff --git a/chroot.sh b/chroot.sh index e4736ef..ea6ad10 100755 --- a/chroot.sh +++ b/chroot.sh @@ -1,5 +1,5 @@ #!/bin/bash -. ${BASH_SOURCE[0]%/*}/common.sh +. "$(dirname `readlink -f "${BASH_SOURCE[0]}"`)"/common.sh select-drive diff --git a/format.sh b/format.sh index 4378238..1d6c2e1 100755 --- a/format.sh +++ b/format.sh @@ -1,5 +1,5 @@ #!/bin/bash -. ${BASH_SOURCE[0]%/*}/common.sh +. "$(dirname `readlink -f "${BASH_SOURCE[0]}"`)"/common.sh select-drive diff --git a/mount.sh b/mount.sh index ec9a74a..55e1cf4 100755 --- a/mount.sh +++ b/mount.sh @@ -1,5 +1,5 @@ #!/bin/bash -. ${BASH_SOURCE[0]%/*}/common.sh +. "$(dirname `readlink -f "${BASH_SOURCE[0]}"`)"/common.sh select-drive diff --git a/root.sh b/root.sh index 861dd40..72f91c5 100755 --- a/root.sh +++ b/root.sh @@ -1,5 +1,5 @@ #!/bin/bash -. ${BASH_SOURCE[0]%/*}/common.sh +. "$(dirname `readlink -f "${BASH_SOURCE[0]}"`)"/common.sh select-drive diff --git a/system.sh b/system.sh index 4237834..66344b2 100755 --- a/system.sh +++ b/system.sh @@ -1,5 +1,5 @@ #!/bin/bash -. ${BASH_SOURCE[0]%/*}/common.sh +. "$(dirname `readlink -f "${BASH_SOURCE[0]}"`)"/common.sh select-drive diff --git a/umount.sh b/umount.sh index e518f83..16c4026 100755 --- a/umount.sh +++ b/umount.sh @@ -1,5 +1,5 @@ #!/bin/bash -. ${BASH_SOURCE[0]%/*}/common.sh +. "$(dirname `readlink -f "${BASH_SOURCE[0]}"`)"/common.sh select-drive -q