You are not logged in.

#1 2013-06-06 12:45:02

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 238

mkarchroot exit status

The latest version of the mkarchroot script completes without error but exits with a status of 1 when I use it. Previously it exited cleanly with status zero.

Try this:

#!/bin/bash
mkarchroot foo base
echo "mkarchroot exit status: $?"

Executing the above script will build a chroot called `foo` and display its exit status. With the latest version I get a non-zero exit status (1). Downgrade to devtools-20130408-1 and try again - the exit status will be zero. Returning a non-zero exit code is a problem for scripts that check the exit code.

Is this a problem with mkarchroot ?

Offline

Board footer

Powered by FluxBB