Skip to content
Snippets Groups Projects
Commit 6714a14a authored by Tobias Haslop's avatar Tobias Haslop
Browse files

Fix use of head

parent 6d17dcca
No related branches found
No related tags found
No related merge requests found
Pipeline #60581 failed
......@@ -83,7 +83,7 @@ unpack_pkg() {
local pkg=$1
pushd packages
cabal unpack --pristine $pkg
local pkg_dir="$(ls -d $pkg* | head)"
local pkg_dir="$(ls -d $pkg* | head -n 1)"
if [ -z "$pkg_dir" ]; then
echo "failed to unpack $pkg"
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment