Display a proper error when we cannot create a temporary file.

This commit is contained in:
Jesse 2024-05-01 11:22:55 -03:00
parent a7b3534b20
commit 2f1843bb41

View file

@ -37,6 +37,12 @@ then
exit 4
fi
if [ ! -r "$temp_file" ]
then
echo "Was unable to create temporary file."
exit 4
fi
mydir=$(dirname -- "$1")
cp "$mydir/$1" "$temp_file"
if [ ! $? ]