Skip to content

Commit 4b6212b

Browse files
committed
Fixed calling generate-cat-file
When you put something in double quotes it will be passed as one parameter (one argv) to the program. This is a way to pass whitespace to programs. In our case the double quotes were wrong since we want to pass -G and the GUID (or -T and the timestamp) as seperate (argv) parameters. Now it builds with WinDRBD and the CAT files generated can be used to load the driver.
1 parent f334adb commit 4b6212b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gencat.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ unset IFS
153153

154154
if [ $DRY_RUN -eq 1 ]
155155
then
156-
echo $EXEC_DIR/generate-cat-file "$CAT_GUID" "$GEN_TIME" -A $OS_ATTR -O $OS_STRING -h $HARDWARE_IDS ${sorted_images[*]}
156+
echo $EXEC_DIR/generate-cat-file $CAT_GUID $GEN_TIME -A $OS_ATTR -O $OS_STRING -h $HARDWARE_IDS ${sorted_images[*]}
157157
exit 0
158158
fi
159159

160160
if [ $OUTPUT_CAT_FILE == '-' ]
161161
then
162-
$EXEC_DIR/generate-cat-file "$CAT_GUID" "$GEN_TIME" -A $OS_ATTR -O $OS_STRING -h $HARDWARE_IDS ${sorted_images[*]}
162+
$EXEC_DIR/generate-cat-file $CAT_GUID $GEN_TIME -A $OS_ATTR -O $OS_STRING -h $HARDWARE_IDS ${sorted_images[*]}
163163
else
164-
$EXEC_DIR/generate-cat-file "$CAT_GUID" "$GEN_TIME" -A $OS_ATTR -O $OS_STRING -h $HARDWARE_IDS ${sorted_images[*]} > $OUTPUT_CAT_FILE
164+
$EXEC_DIR/generate-cat-file $CAT_GUID $GEN_TIME -A $OS_ATTR -O $OS_STRING -h $HARDWARE_IDS ${sorted_images[*]} > $OUTPUT_CAT_FILE
165165
fi

0 commit comments

Comments
 (0)