Skip to content

Commit 3f02254

Browse files
committed
Adapt Alire stub in test
1 parent 7a211f5 commit 3f02254

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Dummy output of `alr build` command
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
set -e
33
# A dummy Alire replacement for testing purposes
4-
while [ $# -gt 1 ] ; do shift ; done
4+
5+
# Skip parameters starting with '-' until the Alire action is reached
6+
while [ $# -gt 1 ] && [[ $1 == -* ]] ; do shift ; done
7+
58
DIR=`cd $(dirname $0); pwd`
69
GNAT=$(dirname `which gnat`)
710
sed -e "s#\${DIR}#${DIR}#g" -e "s#\${GNAT}#${GNAT}#g" ${DIR}/.alr_$1

0 commit comments

Comments
 (0)