aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-11 07:03:34 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-11 07:03:34 +0000
commit2972d9f61521eb2dbdc48d1d1028148693c439de (patch)
tree047edce7ea053d244a804f8a52b341ae582f00c9 /kiss
parente61ac0bc87a7040ff5e4cf3211129446d5c27e2a (diff)
downloadcpt-2972d9f61521eb2dbdc48d1d1028148693c439de.tar.gz
kiss: remove now pointless case
FossilOrigin-Name: 70ba4ecafc72bcefa55a75256273c3b8a71b32917d46f84c63db2af16f74a084
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss32
1 files changed, 14 insertions, 18 deletions
diff --git a/kiss b/kiss
index 7b39374..87bf8f8 100755
--- a/kiss
+++ b/kiss
@@ -510,27 +510,23 @@ pkg_checksums() {
repo_dir=$(pkg_find "$1")
while read -r src _; do
- case $src in
- *)
- # File is local to the package.
- if [ -f "$repo_dir/$src" ]; then
- src_path=$repo_dir/${src%/*}
+ # File is local to the package.
+ if [ -f "$repo_dir/$src" ]; then
+ src_path=$repo_dir/${src%/*}
- # File is remote and was downloaded.
- elif [ -f "$src_dir/$1/${src##*/}" ]; then
- src_path=$src_dir/$1
+ # File is remote and was downloaded.
+ elif [ -f "$src_dir/$1/${src##*/}" ]; then
+ src_path=$src_dir/$1
- # Die here if source for some reason, doesn't exist.
- else
- die "[$1] Couldn't find source '$src'"
- fi
+ # Die here if source for some reason, doesn't exist.
+ else
+ die "[$1] Couldn't find source '$src'"
+ fi
- # An easy way to get 'sha256sum' to print with the 'basename'
- # of files is to 'cd' to the file's directory beforehand.
- (cd "$src_path" && sha256sum "${src##*/}") ||
- die "[$1] Failed to generate checksums"
- ;;
- esac
+ # An easy way to get 'sha256sum' to print with the 'basename'
+ # of files is to 'cd' to the file's directory beforehand.
+ (cd "$src_path" && sha256sum "${src##*/}") ||
+ die "[$1] Failed to generate checksums"
done < "$repo_dir/sources"
}